| 200 | } |
| 201 | |
| 202 | void 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 | |
| 212 | namespace { |
| 213 | bool AllPointsEqual(const Point pts[], int count) { |
nothing calls this directly
no test coverage detected