| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private COSArray | |
| private static final Log | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract List | |
| public int | Returns: the number of bits per componentThe bits per component of this shading. |
| public int | Returns: the number of bits per coordinateThe bits per coordinate of this shading. |
| public Rectangle2D | getBounds(AffineTransform
the affine transformation xform, Matrix the pattern matrix matrix)Overrides org. Calculate a bounding rectangle around the areas of this shading context. |
| public PDRange | Returns: the decode parameter range or null if none is setthe function parameter number paramNum)Get the decode for the input parameter. |
| private COSArray | |
| public int | Returns: number of color components of this shadingThe number of color components of this shading. |
| protected float | Returns: interpolated valuesrc value src, long max src value (2^bits-1) srcMax, float min dst value dstMin, float max dst value dstMax)Calculate the interpolation, see p.345 pdf spec 1.7. |
| protected Vertex | Returns: a new vertex with the flag and the interpolated valuesbit input stream input, long max value for source coordinate (2^bits-1) maxSrcCoord, long max value for source color (2^bits-1) maxSrcColor, PDRange dest range for X rangeX, PDRange dest range for Y rangeY, PDRange[] dest range array for colors colRangeTab, Matrix the pattern matrix concatenated with that of the parent content stream matrix, AffineTransform the affine transformation xform)Read a vertex from the bit input stream performs interpolations. |
| public void | setBitsPerComponent(int
the number of bits per component bitsPerComponent)Set the number of bits per component. |
| public void | setBitsPerCoordinate(int
the number of bits per coordinate bitsPerCoordinate)Set the number of bits per coordinate. |
| public void |
| bitsPerColorComponent | back to summary |
|---|---|
| private int bitsPerColorComponent | |
| bitsPerCoordinate | back to summary |
|---|---|
| private int bitsPerCoordinate | |
| decode | back to summary |
|---|---|
| private COSArray decode | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| numberOfColorComponents | back to summary |
|---|---|
| private int numberOfColorComponents | |
| PDTriangleBasedShadingType | back to summary |
|---|---|
| pack-priv PDTriangleBasedShadingType(COSDictionary shadingDictionary) | |
| collectTriangles | back to summary |
|---|---|
| pack-priv abstract List | |
| getBitsPerComponent | back to summary |
|---|---|
| public int getBitsPerComponent() The bits per component of this shading. This will return -1 if one has not been set.
| |
| getBitsPerCoordinate | back to summary |
|---|---|
| public int getBitsPerCoordinate() The bits per coordinate of this shading. This will return -1 if one has not been set.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle2D getBounds(AffineTransform xform, Matrix matrix) throws IOException Overrides org. Doc from org. Calculate a bounding rectangle around the areas of this shading context.
| |
| getDecodeForParameter | back to summary |
|---|---|
| public PDRange getDecodeForParameter(int paramNum) Get the decode for the input parameter.
| |
| getDecodeValues | back to summary |
|---|---|
| private COSArray getDecodeValues() Returns all decode values as COSArray.
| |
| getNumberOfColorComponents | back to summary |
|---|---|
| public int getNumberOfColorComponents() throws IOException The number of color components of this shading.
| |
| interpolate | back to summary |
|---|---|
| protected float interpolate(float src, long srcMax, float dstMin, float dstMax) Calculate the interpolation, see p.345 pdf spec 1.7.
| |
| readVertex | back to summary |
|---|---|
| protected Vertex readVertex(ImageInputStream input, long maxSrcCoord, long maxSrcColor, PDRange rangeX, PDRange rangeY, PDRange[] colRangeTab, Matrix matrix, AffineTransform xform) throws IOException Read a vertex from the bit input stream performs interpolations.
| |
| setBitsPerComponent | back to summary |
|---|---|
| public void setBitsPerComponent(int bitsPerComponent) Set the number of bits per component.
| |
| setBitsPerCoordinate | back to summary |
|---|---|
| public void setBitsPerCoordinate(int bitsPerCoordinate) Set the number of bits per coordinate.
| |
| setDecodeValues | back to summary |
|---|---|
| public void setDecodeValues(COSArray decodeValues) This will set the decode values.
| |