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

Method needShape

src/pdf/PDFExportContext.cpp:108–123  ·  view source on GitHub ↗

Returns true when we explicitly need the shape of the drawing. */

Source from the content-addressed store, hash-verified

106
107 /* Returns true when we explicitly need the shape of the drawing. */
108 bool needShape() {
109 switch (blendMode) {
110 case BlendMode::Clear:
111 case BlendMode::Src:
112 case BlendMode::SrcIn:
113 case BlendMode::SrcOut:
114 case BlendMode::DstIn:
115 case BlendMode::DstOut:
116 case BlendMode::SrcATop:
117 case BlendMode::DstATop:
118 case BlendMode::Modulate:
119 return true;
120 default:
121 return false;
122 }
123 }
124
125 /* Returns true unless we only need the shape of the drawing. */
126 bool needSource() {

Callers 1

onDrawImageRectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected