MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setTintColor

Method setTintColor

snap_drawing/src/snap_drawing/cpp/Layers/ImageLayer.cpp:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void ImageLayer::setTintColor(Color tintColor) {
171 if (_tintColor != tintColor) {
172 _tintColor = tintColor;
173 _imagePaint.setBlendColorFilter(tintColor);
174 setNeedsDisplay();
175 }
176}
177
178void ImageLayer::setContentScaleX(Scalar contentScaleX) {
179 if (_contentScaleX != contentScaleX) {

Callers 1

Calls 1

setBlendColorFilterMethod · 0.80

Tested by

no test coverage detected