Example usage for Java java.awt.image BufferedImage fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TYPE_CUSTOM Image type is not recognized so it must be a customized image. |
int | TYPE_INT_RGB Represents an image with 8-bit RGB color components packed into integer pixels. |
int | TYPE_INT_ARGB Represents an image with 8-bit RGBA color components packed into integer pixels. |
int | TYPE_INT_ARGB_PRE Represents an image with 8-bit RGBA color components packed into integer pixels. |
int | TYPE_INT_BGR Represents an image with 8-bit RGB color components, corresponding to a Windows- or Solaris- style BGR color model, with the colors Blue, Green, and Red packed into integer pixels. |
int | TYPE_3BYTE_BGR Represents an image with 8-bit RGB color components, corresponding to a Windows-style BGR color model) with the colors Blue, Green, and Red stored in 3 bytes. |
int | TYPE_4BYTE_ABGR Represents an image with 8-bit RGBA color components with the colors Blue, Green, and Red stored in 3 bytes and 1 byte of alpha. |
int | TYPE_4BYTE_ABGR_PRE Represents an image with 8-bit RGBA color components with the colors Blue, Green, and Red stored in 3 bytes and 1 byte of alpha. |
int | TYPE_USHORT_565_RGB Represents an image with 5-6-5 RGB color components (5-bits red, 6-bits green, 5-bits blue) with no alpha. |
int | TYPE_USHORT_555_RGB Represents an image with 5-5-5 RGB color components (5-bits red, 5-bits green, 5-bits blue) with no alpha. |
int | TYPE_BYTE_GRAY Represents a unsigned byte grayscale image, non-indexed. |
int | TYPE_USHORT_GRAY Represents an unsigned short grayscale image, non-indexed). |
int | TYPE_BYTE_BINARY Represents an opaque byte-packed 1, 2, or 4 bit image. |
int | TYPE_BYTE_INDEXED Represents an indexed byte image. |
BufferedImage(int width, int height, int imageType) Constructs a BufferedImage of one of the predefined image types. | |
BufferedImage(int width, int height, int imageType, IndexColorModel cm) Constructs a BufferedImage of one of the predefined image types: TYPE_BYTE_BINARY or TYPE_BYTE_INDEXED. | |
BufferedImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable, ?> properties) Constructs a new BufferedImage with a specified ColorModel and Raster . |
WritableRaster | copyData(WritableRaster outRaster) Computes an arbitrary rectangular region of the BufferedImage and copies it into a specified WritableRaster . |
Graphics2D | createGraphics() Creates a Graphics2D , which can be used to draw into this BufferedImage . |
void | flush() Flushes all reconstructable resources being used by this Image object. |
WritableRaster | getAlphaRaster() Returns a WritableRaster representing the alpha channel for BufferedImage objects with ColorModel objects that support a separate spatial alpha channel, such as ComponentColorModel and DirectColorModel . |
ColorModel | getColorModel() Returns the ColorModel . |
Raster | getData() Returns the image as one large tile. |
java.awt.Graphics | getGraphics() This method returns a Graphics2D , but is here for backwards compatibility. |
int | getHeight() Returns the height of the BufferedImage . |
int | getHeight(ImageObserver observer) Returns the height of the BufferedImage . |
int | getMinX() Returns the minimum x coordinate of this BufferedImage . |
int | getMinY() Returns the minimum y coordinate of this BufferedImage . |
Object | getProperty(String name) Returns a property of the image by name. |
String[] | getPropertyNames() Returns an array of names recognized by #getProperty(String) getProperty(String) or null , if no property names are recognized. |
WritableRaster | getRaster() Returns the WritableRaster . |
int | getRGB(int x, int y) Returns an integer pixel in the default RGB color model (TYPE_INT_ARGB) and default sRGB colorspace. |
int[] | getRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) Returns an array of integer pixels in the default RGB color model (TYPE_INT_ARGB) and default sRGB color space, from a portion of the image data. |
SampleModel | getSampleModel() Returns the SampleModel associated with this BufferedImage . |
Image | getScaledInstance(int width, int height, int hints) Creates a scaled version of this image. |
ImageProducer | getSource() Returns the object that produces the pixels for the image. |
BufferedImage | getSubimage(int x, int y, int w, int h) Returns a subimage defined by a specified rectangular region. |
int | getTileWidth() Returns the tile width in pixels. |
int | getTransparency() Returns the transparency. |
int | getType() Returns the image type. |
int | getWidth() Returns the width of the BufferedImage . |
int | getWidth(ImageObserver observer) Returns the width of the BufferedImage . |
WritableRaster | getWritableTile(int tileX, int tileY) Checks out a tile for writing. |
int | hashCode() Returns a hash code value for the object. |
boolean | isAlphaPremultiplied() Returns whether or not the alpha has been premultiplied. |
void | releaseWritableTile(int tileX, int tileY) Relinquishes permission to write to a tile. |
void | setData(Raster r) Sets a rectangular region of the image to the contents of the specified Raster r , which is assumed to be in the same coordinate space as the BufferedImage . |
void | setRGB(int x, int y, int rgb) Sets a pixel in this BufferedImage to the specified RGB value. |
void | setRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) Sets an array of integer pixels in the default RGB color model (TYPE_INT_ARGB) and default sRGB color space, into a portion of the image data. |
String | toString() Returns a String representation of this BufferedImage object and its values. |