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

Function MakePSFunction

src/pdf/PDFGradientShader.cpp:715–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713}
714
715PDFIndirectReference 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
725PDFIndirectReference MakeFunctionShader(PDFDocumentImpl* doc, const PDFGradientShader::Key& state) {
726 Point transformPoints[2];

Callers 1

MakeFunctionShaderFunction · 0.85

Calls 4

MakeFunction · 0.85
PDFStreamOutFunction · 0.85
insertIntMethod · 0.80
insertObjectMethod · 0.80

Tested by

no test coverage detected