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. 
 | 
writegetDeflate, getOutputStream, getStream, getWriter, setDeflate, writeStreamgetGeneration, getName, getPDFDocument, getSerialID, getType, setName, toArray, toString, writeEnd, writeStartpublic 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 PDFShadingos - IOExceptionpublic String getStreamDataString()
getStreamDataString in class PDFStream