bool SkBlenderBase::affectsTransparentBlack() const { if (auto blendMode = this->asBlendMode()) {
SkBlendModeCoeff src, dst; if (SkBlendMode_AsCoeff(*blendMode, &src, &dst)) { // If the source is (0,0,0,0), then dst is preserved as long as its coefficient // evaluates to 1.0. This is true for kOne, kISA, and kISC. Anything else means the // blend mode affects transparent black. return dst != SkBlendModeCoeff::kOne &&
dst != SkBlendModeCoeff::kISA &&
dst != SkBlendModeCoeff::kISC;
} else { // An advanced blend mode, which do not affect transparent black returnfalse;
}
} else { // Blenders that aren't blend modes are assumed to modify transparent black. returntrue;
}
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.