org.apache.fop.render.afp.modca

Class 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.

Method Summary

static 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)

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.