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

Class MultiplyAlphaRed

public class MultiplyAlphaRed extends AbstractRed

This implements a masking operation by multiply the alpha channel of one image by a luminance image (the mask).
Constructor Summary
MultiplyAlphaRed(CachableRed src, CachableRed alpha)
Multiply the alpha of one image with a mask image.
Method Summary
WritableRastercopyData(WritableRaster wr)
static ColorModelfixColorModel(CachableRed src)
static SampleModelfixSampleModel(CachableRed src)
booleanis_INT_PACK_BYTE_COMP(SampleModel srcSM, SampleModel alpSM)
WritableRasterINT_PACK_BYTE_COMP_Impl(WritableRaster wr)
static RectanglemakeBounds(CachableRed src1, CachableRed src2)
static ListmakeList(CachableRed src1, CachableRed src2)

Constructor Detail

MultiplyAlphaRed

public MultiplyAlphaRed(CachableRed src, CachableRed alpha)
Multiply the alpha of one image with a mask image. The size of the resultant image is the intersection of the two image bounds. If you want the end image to be the size of one or the other please use the PadRed operator.

Parameters: src The image to convert to multiply the alpha of alpha The mask image to multiply the alpha channel of src with.

Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

fixColorModel

public static ColorModel fixColorModel(CachableRed src)

fixSampleModel

public static SampleModel fixSampleModel(CachableRed src)

is_INT_PACK_BYTE_COMP

public boolean is_INT_PACK_BYTE_COMP(SampleModel srcSM, SampleModel alpSM)

INT_PACK_BYTE_COMP_Impl

public WritableRaster INT_PACK_BYTE_COMP_Impl(WritableRaster wr)

makeBounds

public static Rectangle makeBounds(CachableRed src1, CachableRed src2)

makeList

public static List makeList(CachableRed src1, CachableRed src2)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.