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

Method drawImage

snap_drawing/src/snap_drawing/cpp/Drawing/DrawingContext.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void DrawingContext::drawImage(const Image& image, const Rect& imageRect, const Rect& targetRect, const Paint* paint) {
78 canvas()->drawImageRect(image.getSkValue(),
79 imageRect.getSkValue(),
80 targetRect.getSkValue(),
81 SkSamplingOptions(),
82 paint != nullptr ? &paint->getSkValue() : nullptr,
83 SkCanvas::kStrict_SrcRectConstraint);
84}
85
86void DrawingContext::clipPath(const Path& path) {
87 canvas()->clipPath(path.getSkValue(), true);

Callers 5

updateImageMethod · 0.80
clipImageToCircleFunction · 0.80
doRasterMethod · 0.80
onDrawMethod · 0.80
onDrawMethod · 0.80

Calls 1

getSkValueMethod · 0.80

Tested by

no test coverage detected