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

Method ApplyPattern

src/pdf/PDFUtils.cpp:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void PDFUtils::ApplyPattern(int objectIndex, const std::shared_ptr<WriteStream>& content) {
203 // Select Pattern color space (CS, cs) and set pattern object as current
204 // color (SCN, scn)
205 content->writeText("/Pattern CS/Pattern cs");
206 PDFWriteResourceName(content, PDFResourceType::Pattern, objectIndex);
207 content->writeText(" SCN");
208 PDFWriteResourceName(content, PDFResourceType::Pattern, objectIndex);
209 content->writeText(" scn\n");
210}
211
212namespace {
213bool AllPointsEqual(const Point pts[], int count) {

Callers

nothing calls this directly

Calls 2

PDFWriteResourceNameFunction · 0.85
writeTextMethod · 0.80

Tested by

no test coverage detected