Class FastCMYKToRGB
java.lang.Object
com.twelvemonkeys.imageio.plugins.jpeg.FastCMYKToRGB
- All Implemented Interfaces:
RasterOp
This class performs a pixel by pixel conversion of the source image, from CMYK to RGB.
The conversion is fast, but performed without any color space conversion.
- Version:
- $Id: FastCMYKToRGB.java,v 1.0 21.02.11 13.22 haraldk Exp$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
convertCMYKToRGB
(byte[] cmyk, byte[] rgb) filter
(Raster src, WritableRaster dest) Converts the CMYK source raster to the destination RGB raster.getBounds2D
(Raster src) getPoint2D
(Point2D srcPt, Point2D dstPt)
-
Constructor Details
-
FastCMYKToRGB
public FastCMYKToRGB()
-
-
Method Details
-
filter
Converts the CMYK source raster to the destination RGB raster.- Specified by:
filter
in interfaceRasterOp
- Parameters:
src
- assumed to be 4 byte CMYKdest
- raster, in either 3 byte BGR/BGR, 4 byte ABGR or int RGB/ARGB format, ornull
- Returns:
dest
, or a newWritableRaster
ifdest
isnull
.- Throws:
IllegalArgumentException
- ifsrc
anddest
refer to the same object
-
convertCMYKToRGB
private void convertCMYKToRGB(byte[] cmyk, byte[] rgb) -
getBounds2D
- Specified by:
getBounds2D
in interfaceRasterOp
-
createCompatibleDestRaster
- Specified by:
createCompatibleDestRaster
in interfaceRasterOp
-
getPoint2D
- Specified by:
getPoint2D
in interfaceRasterOp
-
getRenderingHints
- Specified by:
getRenderingHints
in interfaceRasterOp
-