org.apache.fop.render.afp.modca
Class ImageRasterPattern
java.lang.Object
org.apache.fop.render.afp.modca.ImageRasterPattern
public class ImageRasterPattern
extends java.lang.Object
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.
static byte[] | getRasterData(int greyscale) - Static method to return the raster image data for the
grey scale specified.
|
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).
greyscale
- The grey scale value (0 - 16)
- the raster data byte array for the given greyscale value
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.