| Modifier and Type | Field and Description |
|---|---|
| private int[][] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | TriangleBasedShadingContext(PDShading
the shading type to be used shading, ColorModel the color model to be used cm, AffineTransform transformation for user to device space xform, Matrix the pattern matrix concatenated with that of the parent content stream matrix)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| pack-priv abstract Map | Returns: a Hash table which contains all the points' positions and colors of one image
Deprecated
the map was replaced with an array due to a better performance
Calculate every point and its color and store them in a Hash table. |
| protected void | calcPixelTable(List<ShadedTriangle> triangleList, Map<Point, Integer> map, Rectangle deviceBounds)
Deprecated
the map was replaced with an array due to a better performance
Get the points from the triangles, calculate their color and add point-color mappings. |
| protected int[][] | calcPixelTable(List<ShadedTriangle> triangleList, int[][] array, Rectangle deviceBounds)
Get the points from the triangles, calculate their color and add point-color mappings. |
| pack-priv abstract int[][] | Returns: an array which contains all the points' positions and colors of one imageCalculate every point and its color and store them in a two-dimensional array. |
| protected final void | |
| private int | evalFunctionAndConvertToRGB(float[] values)
Convert color to RGB color value, using function if required, then convert from the shading color space to an RGB value, which is encoded into an integer. |
| public final Raster | getRaster(int
the x coordinate of the area in device space
for which colors are generated. x, int the y coordinate of the area in device space
for which colors are generated. y, int the width of the area in device space w, int the height of the area in device space h)Implements java. Returns a |
| private int | |
| pack-priv abstract boolean |
| pixelTableArray | back to summary |
|---|---|
| private int[][] pixelTableArray | |
| xOffset | back to summary |
|---|---|
| private int xOffset | |
| yOffset | back to summary |
|---|---|
| private int yOffset | |
| TriangleBasedShadingContext | back to summary |
|---|---|
| pack-priv TriangleBasedShadingContext(PDShading shading, ColorModel cm, AffineTransform xform, Matrix matrix) throws IOException Constructor.
| |
| addLinePoints | back to summary |
|---|---|
| private void addLinePoints(Line line, int[][] array) throws IOException | |
| addValueToArray | back to summary |
|---|---|
| private void addValueToArray(Point p, int value, int[][] array) | |
| calcPixelTable | back to summary |
|---|---|
| pack-priv abstract Map Deprecated the map was replaced with an array due to a better performance Calculate every point and its color and store them in a Hash table. | |
| calcPixelTable | back to summary |
|---|---|
| protected void calcPixelTable(List<ShadedTriangle> triangleList, Map<Point, Integer> map, Rectangle deviceBounds) throws IOException
Deprecated the map was replaced with an array due to a better performance Get the points from the triangles, calculate their color and add point-color mappings.
| |
| calcPixelTable | back to summary |
|---|---|
| protected int[][] calcPixelTable(List<ShadedTriangle> triangleList, int[][] array, Rectangle deviceBounds) throws IOException Get the points from the triangles, calculate their color and add point-color mappings. | |
| calcPixelTableArray | back to summary |
|---|---|
| pack-priv abstract int[][] calcPixelTableArray(Rectangle deviceBounds) throws IOException Calculate every point and its color and store them in a two-dimensional array.
| |
| createPixelTable | back to summary |
|---|---|
| protected final void createPixelTable(Rectangle deviceBounds) throws IOException Creates the pixel table. | |
| evalFunctionAndConvertToRGB | back to summary |
|---|---|
| private int evalFunctionAndConvertToRGB(float[] values) throws IOException Convert color to RGB color value, using function if required, then convert from the shading color space to an RGB value, which is encoded into an integer. | |
| getRaster | back to summary |
|---|---|
| public final Raster getRaster(int x, int y, int w, int h) Implements java. Doc from java. Returns a
| |
| getValueFromArray | back to summary |
|---|---|
| private int getValueFromArray(int x, int y) | |
| isDataEmpty | back to summary |
|---|---|
| pack-priv abstract boolean isDataEmpty() Returns true if the shading has an empty data stream. | |