Hello, I'm trying to create some smooth shaded triangles (Shading Type 4) in a PDF. I've adapted the helloworld example, supplied with the library, to draw a triangle with constant (red) colour:
PdfTriangleShadingPattern a = PdfTriangleShadingPattern(0.0, 0.0, PdfColor(1.0, 0.0, 0.0), 100.0, 100.0, PdfColor(1.0, 0.0, 0.0), 100.0, 0.0, PdfColor(1.0, 0.0, 0.0), &document); painter.SetShadingPattern(a); This seems to work seeing that the objects show up in the PDF e.g. 11 0 obj<</Type/Pattern/PatternType 2/Shading 12 0 R>> endobj 12 0 obj<</BitsPerComponent 8/BitsPerCoordinate 8/BitsPerFlag 8/ColorSpace/DeviceRGB/Decode[ 10 20 10 20 0 1 0 1 0 1]/Filter/FlateDecode/Length 19/ShadingType 4>> stream x\9Cc`\00\82\FF \FF\FF\83I \00.\E3 \FB endstream endobj However the actual PDF remains blank. I am unsure whether this is a bug in the library or if I am calling the wrong sequence of functions. Help would be greatly appreciated.
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users