ImageGearJava Project > com.accusoft.imagegear.core Package > ImGearRasterPage Class > ImGearRasterPage Constructor : ImGearRasterPage Constructor(int,int,ImGearColorSpace,int[],boolean) |
The ImGearPage is initialized with a set of image defining attributes. Optionally a store for pixels may also be allocated.
An exception may be thrown while constructing the page instance if incompatible image attributes are passed (e.g., ChannelDepths has length smaller than colors channels quantity in specified color space).
This constructor does not allocate a palette. After creating an indexed image the user should allocate a palette, initialize its entries, and attach it to the ImGearRasterPage
's DIB. The Palette's length should be equal to 2^depth, where depth is bit depth of the indexed image.
public ImGearRasterPage( int width, int height, ImGearColorSpace colorSpace, int[] channelDepths, boolean allocatePixels ) |
The ImGearPage is initialized with a set of image defining attributes. Optionally a store for pixels may also be allocated.
An exception may be thrown while constructing the page instance if incompatible image attributes are passed (e.g., ChannelDepths has length smaller than colors channels quantity in specified color space).
This constructor does not allocate a palette. After creating an indexed image the user should allocate a palette, initialize its entries, and attach it to the ImGearRasterPage
's DIB. The Palette's length should be equal to 2^depth, where depth is bit depth of the indexed image.