| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.image | Provides classes for creating and modifying images. | 
| javax.imageio | The main package of the Java Image I/O API. | 
| javax.imageio.event | A package of the Java Image I/O API dealing with synchronous
notification of events during the reading and writing of images. | 
| Modifier and Type | Method and Description | 
|---|---|
| BufferedImage | GraphicsConfiguration. createCompatibleImage(int width,
                     int height)Returns a  BufferedImagewith a data layout and color model
 compatible with thisGraphicsConfiguration. | 
| BufferedImage | GraphicsConfiguration. createCompatibleImage(int width,
                     int height,
                     int transparency)Returns a  BufferedImagethat supports the specified
 transparency and has a data layout and color model
 compatible with thisGraphicsConfiguration. | 
| BufferedImage | Robot. createScreenCapture(Rectangle screenRect)Creates an image containing pixels read from the screen. | 
| BufferedImage | TexturePaint. getImage()Returns the  BufferedImagetexture used to
 fill the shapes. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Graphics2D | GraphicsEnvironment. createGraphics(BufferedImage img)Returns a  Graphics2Dobject for rendering into the
 specifiedBufferedImage. | 
| abstract void | Graphics2D. drawImage(BufferedImage img,
         BufferedImageOp op,
         int x,
         int y)Renders a  BufferedImagethat is
 filtered with aBufferedImageOp. | 
| Constructor and Description | 
|---|
| TexturePaint(BufferedImage txtr,
            Rectangle2D anchor)Constructs a  TexturePaintobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| BufferedImage | IndexColorModel. convertToIntDiscrete(Raster raster,
                    boolean forceARGB)Returns a new  BufferedImageof TYPE_INT_ARGB or
 TYPE_INT_RGB that has aRasterwith pixel data
 computed by expanding the indices in the sourceRasterusing the color/alpha component arrays of thisColorModel. | 
| BufferedImage | RescaleOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | LookupOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | ConvolveOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number
 of bands. | 
| BufferedImage | AffineTransformOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | ColorConvertOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands, given this source. | 
| BufferedImage | BufferedImageOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | RescaleOp. filter(BufferedImage src,
      BufferedImage dst)Rescales the source BufferedImage. | 
| BufferedImage | LookupOp. filter(BufferedImage src,
      BufferedImage dst)Performs a lookup operation on a  BufferedImage. | 
| BufferedImage | ConvolveOp. filter(BufferedImage src,
      BufferedImage dst)Performs a convolution on BufferedImages. | 
| BufferedImage | AffineTransformOp. filter(BufferedImage src,
      BufferedImage dst)Transforms the source  BufferedImageand stores the results
 in the destinationBufferedImage. | 
| BufferedImage | ColorConvertOp. filter(BufferedImage src,
      BufferedImage dest)ColorConverts the source BufferedImage. | 
| BufferedImage | BufferedImageOp. filter(BufferedImage src,
      BufferedImage dest)Performs a single-input/single-output operation on a
  BufferedImage. | 
| abstract BufferedImage | VolatileImage. getSnapshot()Returns a static snapshot image of this object. | 
| BufferedImage | BufferedImage. getSubimage(int x,
           int y,
           int w,
           int h)Returns a subimage defined by a specified rectangular region. | 
| Modifier and Type | Method and Description | 
|---|---|
| BufferedImage | RescaleOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | LookupOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | ConvolveOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number
 of bands. | 
| BufferedImage | AffineTransformOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | ColorConvertOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands, given this source. | 
| BufferedImage | BufferedImageOp. createCompatibleDestImage(BufferedImage src,
                         ColorModel destCM)Creates a zeroed destination image with the correct size and number of
 bands. | 
| BufferedImage | RescaleOp. filter(BufferedImage src,
      BufferedImage dst)Rescales the source BufferedImage. | 
| BufferedImage | LookupOp. filter(BufferedImage src,
      BufferedImage dst)Performs a lookup operation on a  BufferedImage. | 
| BufferedImage | ConvolveOp. filter(BufferedImage src,
      BufferedImage dst)Performs a convolution on BufferedImages. | 
| BufferedImage | AffineTransformOp. filter(BufferedImage src,
      BufferedImage dst)Transforms the source  BufferedImageand stores the results
 in the destinationBufferedImage. | 
| BufferedImage | ColorConvertOp. filter(BufferedImage src,
      BufferedImage dest)ColorConverts the source BufferedImage. | 
| BufferedImage | BufferedImageOp. filter(BufferedImage src,
      BufferedImage dest)Performs a single-input/single-output operation on a
  BufferedImage. | 
| Rectangle2D | RescaleOp. getBounds2D(BufferedImage src)Returns the bounding box of the rescaled destination image. | 
| Rectangle2D | LookupOp. getBounds2D(BufferedImage src)Returns the bounding box of the filtered destination image. | 
| Rectangle2D | ConvolveOp. getBounds2D(BufferedImage src)Returns the bounding box of the filtered destination image. | 
| Rectangle2D | AffineTransformOp. getBounds2D(BufferedImage src)Returns the bounding box of the transformed destination. | 
| Rectangle2D | ColorConvertOp. getBounds2D(BufferedImage src)Returns the bounding box of the destination, given this source. | 
| Rectangle2D | BufferedImageOp. getBounds2D(BufferedImage src)Returns the bounding box of the filtered destination image. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected BufferedImage | ImageReadParam. destinationThe current destination  BufferedImage, ornullif none has been set. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected List<? extends BufferedImage> | IIOImage. thumbnailsA  ListofBufferedImagethumbnails,
 ornull. | 
| Modifier and Type | Method and Description | 
|---|---|
| BufferedImage | ImageTypeSpecifier. createBufferedImage(int width,
                   int height)Creates a  BufferedImagewith a given width and
 height according to the specification embodied in this object. | 
| BufferedImage | ImageReadParam. getDestination()Returns the  BufferedImagecurrently set by thesetDestinationmethod, ornullif none is set. | 
| protected static BufferedImage | ImageReader. getDestination(ImageReadParam param,
              Iterator<ImageTypeSpecifier> imageTypes,
              int width,
              int height)Returns the  BufferedImageto which decoded pixel
 data should be written. | 
| BufferedImage | IIOImage. getThumbnail(int index)Returns a thumbnail associated with the main image. | 
| static BufferedImage | ImageIO. read(File input)Returns a  BufferedImageas the result of decoding
 a suppliedFilewith anImageReaderchosen automatically from among those currently registered. | 
| static BufferedImage | ImageIO. read(ImageInputStream stream)Returns a  BufferedImageas the result of decoding
 a suppliedImageInputStreamwith anImageReaderchosen automatically from among those
 currently registered. | 
| static BufferedImage | ImageIO. read(InputStream input)Returns a  BufferedImageas the result of decoding
 a suppliedInputStreamwith anImageReaderchosen automatically from among those currently registered. | 
| BufferedImage | ImageReader. read(int imageIndex)Reads the image indexed by  imageIndexand returns
 it as a completeBufferedImage, using a defaultImageReadParam. | 
| abstract BufferedImage | ImageReader. read(int imageIndex,
    ImageReadParam param)Reads the image indexed by  imageIndexand returns
 it as a completeBufferedImage, using a suppliedImageReadParam. | 
| static BufferedImage | ImageIO. read(URL input)Returns a  BufferedImageas the result of decoding
 a suppliedURLwith anImageReaderchosen automatically from among those currently registered. | 
| BufferedImage | ImageReader. readThumbnail(int imageIndex,
             int thumbnailIndex)Returns the thumbnail preview image indexed by
  thumbnailIndex, associated with the image indexed
 byImageIndexas aBufferedImage. | 
| BufferedImage | ImageReader. readTile(int imageIndex,
        int tileX,
        int tileY)Reads the tile indicated by the  tileXandtileYarguments, returning it as aBufferedImage. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<? extends BufferedImage> | IIOImage. getThumbnails()Returns the current  Listof thumbnailBufferedImages, ornullif none is
 set. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static void | ImageReader. computeRegions(ImageReadParam param,
              int srcWidth,
              int srcHeight,
              BufferedImage image,
              Rectangle srcRegion,
              Rectangle destRegion)Computes the source region of interest and the destination
 region of interest, taking the width and height of the source
 image, an optional destination image, and an optional
  ImageReadParaminto account. | 
| protected void | ImageReader. processImageUpdate(BufferedImage theImage,
                  int minX,
                  int minY,
                  int width,
                  int height,
                  int periodX,
                  int periodY,
                  int[] bands)Broadcasts the update of a set of samples to all registered
  IIOReadUpdateListeners by calling theirimageUpdatemethod. | 
| protected void | ImageReader. processPassComplete(BufferedImage theImage)Broadcasts the end of a progressive pass to all
 registered  IIOReadUpdateListeners by calling theirpassCompletemethod. | 
| protected void | ImageReader. processPassStarted(BufferedImage theImage,
                  int pass,
                  int minPass,
                  int maxPass,
                  int minX,
                  int minY,
                  int periodX,
                  int periodY,
                  int[] bands)Broadcasts the beginning of a progressive pass to all
 registered  IIOReadUpdateListeners by calling theirpassStartedmethod. | 
| protected void | ImageReader. processThumbnailPassComplete(BufferedImage theThumbnail)Broadcasts the end of a thumbnail progressive pass to all
 registered  IIOReadUpdateListeners by calling theirthumbnailPassCompletemethod. | 
| protected void | ImageReader. processThumbnailPassStarted(BufferedImage theThumbnail,
                           int pass,
                           int minPass,
                           int maxPass,
                           int minX,
                           int minY,
                           int periodX,
                           int periodY,
                           int[] bands)Broadcasts the beginning of a thumbnail progressive pass to all
 registered  IIOReadUpdateListeners by calling theirthumbnailPassStartedmethod. | 
| protected void | ImageReader. processThumbnailUpdate(BufferedImage theThumbnail,
                      int minX,
                      int minY,
                      int width,
                      int height,
                      int periodX,
                      int periodY,
                      int[] bands)Broadcasts the update of a set of samples in a thumbnail image
 to all registered  IIOReadUpdateListeners by
 calling theirthumbnailUpdatemethod. | 
| void | ImageReadParam. setDestination(BufferedImage destination)Supplies a  BufferedImageto be used as the
 destination for decoded pixel data. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ImageWriter. prepareInsertEmpty(int imageIndex,
                  ImageTypeSpecifier imageType,
                  int width,
                  int height,
                  IIOMetadata imageMetadata,
                  List<? extends BufferedImage> thumbnails,
                  ImageWriteParam param)Begins the insertion of a new image with undefined pixel values
 into an existing image stream. | 
| void | ImageWriter. prepareWriteEmpty(IIOMetadata streamMetadata,
                 ImageTypeSpecifier imageType,
                 int width,
                 int height,
                 IIOMetadata imageMetadata,
                 List<? extends BufferedImage> thumbnails,
                 ImageWriteParam param)Begins the writing of a complete image stream, consisting of a
 single image with undefined pixel values and associated
 metadata and thumbnails, to the output. | 
| void | IIOImage. setThumbnails(List<? extends BufferedImage> thumbnails)Sets the list of thumbnails to a new  ListofBufferedImages, or tonull. | 
| Constructor and Description | 
|---|
| IIOImage(Raster raster,
        List<? extends BufferedImage> thumbnails,
        IIOMetadata metadata)Constructs an  IIOImagecontaining aRaster, and thumbnails and metadata
 associated with it. | 
| IIOImage(RenderedImage image,
        List<? extends BufferedImage> thumbnails,
        IIOMetadata metadata)Constructs an  IIOImagecontaining aRenderedImage, and thumbnails and metadata
 associated with it. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | IIOReadUpdateListener. imageUpdate(ImageReader source,
           BufferedImage theImage,
           int minX,
           int minY,
           int width,
           int height,
           int periodX,
           int periodY,
           int[] bands)Reports that a given region of the image has been updated. | 
| void | IIOReadUpdateListener. passComplete(ImageReader source,
            BufferedImage theImage)Reports that the current read operation has completed a
 progressive pass. | 
| void | IIOReadUpdateListener. passStarted(ImageReader source,
           BufferedImage theImage,
           int pass,
           int minPass,
           int maxPass,
           int minX,
           int minY,
           int periodX,
           int periodY,
           int[] bands)Reports that the current read operation is about to begin a
 progressive pass. | 
| void | IIOReadUpdateListener. thumbnailPassComplete(ImageReader source,
                     BufferedImage theThumbnail)Reports that the current thumbnail read operation has completed
 a progressive pass. | 
| void | IIOReadUpdateListener. thumbnailPassStarted(ImageReader source,
                    BufferedImage theThumbnail,
                    int pass,
                    int minPass,
                    int maxPass,
                    int minX,
                    int minY,
                    int periodX,
                    int periodY,
                    int[] bands)Reports that the current thumbnail read operation is about to
 begin a progressive pass. | 
| void | IIOReadUpdateListener. thumbnailUpdate(ImageReader source,
               BufferedImage theThumbnail,
               int minX,
               int minY,
               int width,
               int height,
               int periodX,
               int periodY,
               int[] bands)Reports that a given region of a thumbnail image has been updated. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.