public class PDFShadingGouraudFreeform extends PDFShading
backgroundColor, boundingBox, colorSpace, shadingType
Constructor and Description |
---|
PDFShadingGouraudFreeform(Canvas.VertexMode vertexMode,
int vertexCount,
float[] vertices,
int vertexOffset,
int[] colors,
int colorOffset)
Constructor for Gouraud free-form triangular mesh shading pattern, type 4.
|
Modifier and Type | Method and Description |
---|---|
String |
getStreamDataString()
Method used for debugging - prints the information in the shading data stream.
|
void |
writeDictionary(OutputStream os)
Write relevant parameters to dictionary - here, BitsPerCoordinate, BitsPerComponent, BitsPerFlag, and the Decode
array.
|
write
getDeflate, getOutputStream, getStream, getWriter, setDeflate, writeStream
getGeneration, getName, getPDFDocument, getSerialID, getType, setName, toArray, toString, writeEnd, writeStart
public PDFShadingGouraudFreeform(Canvas.VertexMode vertexMode, int vertexCount, float[] vertices, int vertexOffset, int[] colors, int colorOffset)
The VertexMode determines how the subsequent points in the sequence of vertices are interpreted.
vertexMode
- Indicates how successive coordinate pairs are to be interpreted, as described abovevertexCount
- Number of vertices to include in the meshvertices
- Array of vertex coordinates, as a sequence of x,y pairsvertexOffset
- Offset in vertex array of first coordinate to use for meshcolors
- Array of colors specifying the color for each vertexcolorOffset
- Offset in color array for starting elementpublic void writeDictionary(OutputStream os) throws IOException
writeDictionary
in class PDFShading
os
- IOException
public String getStreamDataString()
getStreamDataString
in class PDFStream