Class MultiplyAlphaRed
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.AbstractRed
-
- org.apache.batik.ext.awt.image.rendered.MultiplyAlphaRed
-
- All Implemented Interfaces:
java.awt.image.RenderedImage
,CachableRed
public class MultiplyAlphaRed extends AbstractRed
This implements a masking operation by multiply the alpha channel of one image by a luminance image (the mask).- Version:
- $Id: MultiplyAlphaRed.java 1831630 2018-05-15 12:56:55Z ssteiner $
-
-
Field Summary
-
Fields inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
-
-
Constructor Summary
Constructors Constructor Description MultiplyAlphaRed(CachableRed src, CachableRed alpha)
Multiply the alpha of one image with a mask image.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.WritableRaster
copyData(java.awt.image.WritableRaster wr)
static java.awt.image.ColorModel
fixColorModel(CachableRed src)
static java.awt.image.SampleModel
fixSampleModel(CachableRed src)
java.awt.image.WritableRaster
INT_PACK_BYTE_COMP_Impl(java.awt.image.WritableRaster wr)
boolean
is_INT_PACK_BYTE_COMP(java.awt.image.SampleModel srcSM, java.awt.image.SampleModel alpSM)
static java.awt.Rectangle
makeBounds(CachableRed src1, CachableRed src2)
static java.util.List
makeList(CachableRed src1, CachableRed src2)
-
Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
-
-
-
-
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 ofalpha
- The mask image to multiply the alpha channel of src with.
-
-
Method Detail
-
is_INT_PACK_BYTE_COMP
public boolean is_INT_PACK_BYTE_COMP(java.awt.image.SampleModel srcSM, java.awt.image.SampleModel alpSM)
-
INT_PACK_BYTE_COMP_Impl
public java.awt.image.WritableRaster INT_PACK_BYTE_COMP_Impl(java.awt.image.WritableRaster wr)
-
copyData
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
-
makeList
public static java.util.List makeList(CachableRed src1, CachableRed src2)
-
makeBounds
public static java.awt.Rectangle makeBounds(CachableRed src1, CachableRed src2)
-
fixSampleModel
public static java.awt.image.SampleModel fixSampleModel(CachableRed src)
-
fixColorModel
public static java.awt.image.ColorModel fixColorModel(CachableRed src)
-
-