org.apache.batik.ext.awt.image.rendered

Class Any2sRGBRed

public class Any2sRGBRed extends AbstractRed

This function will tranform an image from any colorspace into a luminance image. The alpha channel if any will be copied to the new image.
Constructor Summary
Any2sRGBRed(CachableRed src)
Construct a luminance image from src.
Method Summary
static WritableRasterapplyLut_INT(WritableRaster wr, int[] lut)
WritableRastercopyData(WritableRaster wr)
protected static ColorModelfixColorModel(CachableRed src)
This function 'fixes' the source's color model.
protected static SampleModelfixSampleModel(CachableRed src)
This function 'fixes' the source's sample model.
static booleanis_INT_PACK_COMP(SampleModel sm)

Constructor Detail

Any2sRGBRed

public Any2sRGBRed(CachableRed src)
Construct a luminance image from src.

Parameters: src The image to convert to a luminance image

Method Detail

applyLut_INT

public static WritableRaster applyLut_INT(WritableRaster wr, int[] lut)

copyData

public WritableRaster copyData(WritableRaster wr)

fixColorModel

protected static ColorModel fixColorModel(CachableRed src)
This function 'fixes' the source's color model. Right now it just selects if it should have one or two bands based on if the source had an alpha channel.

fixSampleModel

protected static SampleModel fixSampleModel(CachableRed src)
This function 'fixes' the source's sample model. Right now it just selects if it should have 3 or 4 bands based on if the source had an alpha channel.

is_INT_PACK_COMP

public static boolean is_INT_PACK_COMP(SampleModel sm)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.