Class Any2LumRed
java.lang.Object
org.apache.batik.ext.awt.image.rendered.AbstractRed
org.apache.batik.ext.awt.image.rendered.Any2LumRed
- All Implemented Interfaces:
RenderedImage
,CachableRed
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.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected static ColorModel
fixColorModel
(CachableRed src) This function 'fixes' the source's color model.protected static SampleModel
This function 'fixes' the source's sample model.protected static int
getAlpha
(BufferedImage bufferedImage) protected static boolean
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 Details
-
Any2LumRed
Construct a luminace image from src.- Parameters:
src
- The image to convert to a luminance image
-
-
Method Details
-
copyData
-
fixColorModel
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
This function 'fixes' the source's sample model. Right now it just selects if it should have one or two bands based on if the source had an alpha channel. -
getColorConvertOpAplhaSupported
protected static boolean getColorConvertOpAplhaSupported() -
getAlpha
-