java.awt.image
public class ColorConvertOp extends Object implements BufferedImageOp, RasterOp
Constructor Summary | |
---|---|
ColorConvertOp(ColorSpace cspace, RenderingHints hints)
Convert a BufferedImage through a ColorSpace.
| |
ColorConvertOp(ColorSpace srcCspace, ColorSpace dstCspace, RenderingHints hints)
Convert from a source colorspace to a destination colorspace.
| |
ColorConvertOp(ICC_Profile[] profiles, RenderingHints hints)
Convert from a source colorspace to a destinatino colorspace.
| |
ColorConvertOp(RenderingHints hints)
Convert from source color space to destination color space.
|
Method Summary | |
---|---|
BufferedImage | createCompatibleDestImage(BufferedImage src, ColorModel dstCM)
Creates an empty BufferedImage with the size equal to the source and the
correct number of bands for the conversion defined in this Op. |
WritableRaster | createCompatibleDestRaster(Raster src)
Creates a new WritableRaster with the size equal to the source and the
correct number of bands.
|
BufferedImage | filter(BufferedImage src, BufferedImage dst)
Converts the source image using the conversion path specified in the
constructor. |
WritableRaster | filter(Raster src, WritableRaster dest)
Converts the source raster using the conversion path specified in the
constructor. |
Rectangle2D | getBounds2D(BufferedImage src)
Returns the corresponding destination boundary of a source boundary.
|
Rectangle2D | getBounds2D(Raster src)
Returns the corresponding destination boundary of a source boundary.
|
ICC_Profile[] | getICC_Profiles()
Returns the array of ICC_Profiles used to create this Op, or null if the
Op was created using ColorSpace arguments.
|
Point2D | getPoint2D(Point2D src, Point2D dst)
Returns the corresponding destination point for a source point.
|
RenderingHints | getRenderingHints()
Returns the rendering hints for this op.
|
Parameters: cspace The target color space. hints Rendering hints to use in conversion, if any (may be null)
Throws: NullPointerException if the ColorSpace is null.
Parameters: srcCspace The source ColorSpace. dstCspace The destination ColorSpace. hints Rendering hints to use in conversion, if any (may be null).
Throws: NullPointerException if any ColorSpace is null.
Parameters: profiles An array of ICC_Profile's to convert through. hints Rendering hints to use in conversion, if any (may be null).
Throws: NullPointerException if the profile array is null. IllegalArgumentException if the array is not a well-defined conversion.
Parameters: hints Rendering hints to use in conversion, if any (may be null).
Parameters: src The source image. dstCM A color model for the destination image (may be null).
Returns: The new compatible destination image.
Throws: IllegalArgumentException if an appropriate colormodel cannot be chosen with the information given.
Parameters: src The source Raster.
Returns: The new compatible destination raster.
Throws: IllegalArgumentException if there isn't enough colorspace information to create a compatible Raster.
Parameters: src The source image. dst The destination image.
Returns: The transformed image.
Throws: IllegalArgumentException if the rasters and/or color spaces are incompatible.
Parameters: src The source raster. dest The destination raster.
Returns: The transformed raster.
Throws: IllegalArgumentException if the rasters and/or color spaces are incompatible.
Parameters: src The source boundary.
Returns: The boundaries of the destination.
Parameters: src The source boundary.
Returns: The boundaries of the destination.
Returns: The array of ICC_Profiles, or null.
Parameters: src The source point. dst The transformed destination point.
Returns: The transformed destination point.
Returns: The rendering hints for this Op, or null.