MCPcopy Create free account
hub / github.com/Tencent/tgfx / MakeLuminanceToAlpha

Method MakeLuminanceToAlpha

src/svg/node/SVGFeColorMatrix.cpp:142–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140constexpr float LUM_COEFF_B = 0.0722f;
141
142ColorMatrix SVGFeColorMatrix::MakeLuminanceToAlpha() {
143 return ColorMatrix{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
144 0, 0, 0, 0, 0, LUM_COEFF_R, LUM_COEFF_G, LUM_COEFF_B, 0, 0};
145}
146
147std::shared_ptr<ImageFilter> SVGFeColorMatrix::onMakeImageFilter(
148 const SVGRenderContext& context, const SVGFilterContext& filterContext) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected