Package org.apache.fop.afp.ioca
Class ImageRasterPattern
java.lang.Object
org.apache.fop.afp.ioca.ImageRasterPattern
Raster data is a grid of cells covering an area of interest.
Each pixel, the smallest unit of information in the grid, displays
a unique attribute. This static class generates raster data for different
shades of grey (betweeen 0 and 16) the lower the number being the
darker the shade. The image data dimensions are 64 x 8.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getRasterData
(int greyscale) Static method to return the raster image data for the grey scale specified.
-
Method Details
-
getRasterData
public static byte[] getRasterData(int greyscale) Static method to return the raster image data for the grey scale specified. The scale should be between 0 (darkest) and 16 (lightest).- Parameters:
greyscale
- The grey scale value (0 - 16)- Returns:
- the raster data byte array for the given greyscale value
-