| 713 | } |
| 714 | |
| 715 | PDFIndirectReference MakePSFunction(std::unique_ptr<Stream> psCode, |
| 716 | std::unique_ptr<PDFArray> domain, |
| 717 | std::unique_ptr<PDFObject> range, PDFDocumentImpl* document) { |
| 718 | auto dict = PDFDictionary::Make(); |
| 719 | dict->insertInt("FunctionType", 4); |
| 720 | dict->insertObject("Domain", std::move(domain)); |
| 721 | dict->insertObject("Range", std::move(range)); |
| 722 | return PDFStreamOut(std::move(dict), std::move(psCode), document); |
| 723 | } |
| 724 | |
| 725 | PDFIndirectReference MakeFunctionShader(PDFDocumentImpl* doc, const PDFGradientShader::Key& state) { |
| 726 | Point transformPoints[2]; |
no test coverage detected