java.lang.Object
com.aoapps.hodgepodge.awt.ImageLoader
- All Implemented Interfaces:
ImageConsumer
Preloads an image for use in
Graphics.drawImage
calls.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
-
Constructor Summary
ConstructorDescriptionImageLoader
(Image image) ImageLoader
(Image image, Logger logger) Deprecated.logger is unused -
Method Summary
Modifier and TypeMethodDescriptionvoid
imageComplete
(int status) void
Loads an image and returns when a frame is done, the image is done, an error occurs, or the image is aborted.void
setColorModel
(ColorModel mode) void
setDimensions
(int width, int height) void
setHints
(int flags) void
setPixels
(int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize) void
setPixels
(int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize) void
setProperties
(Hashtable<?, ?> properties)
-
Constructor Details
-
ImageLoader
Deprecated.logger is unused -
ImageLoader
-
-
Method Details
-
imageComplete
public void imageComplete(int status) - Specified by:
imageComplete
in interfaceImageConsumer
-
loadImage
Loads an image and returns when a frame is done, the image is done, an error occurs, or the image is aborted.- Throws:
InterruptedException
-
setColorModel
- Specified by:
setColorModel
in interfaceImageConsumer
-
setDimensions
public void setDimensions(int width, int height) - Specified by:
setDimensions
in interfaceImageConsumer
-
setHints
public void setHints(int flags) - Specified by:
setHints
in interfaceImageConsumer
-
setPixels
public void setPixels(int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize) - Specified by:
setPixels
in interfaceImageConsumer
-
setPixels
public void setPixels(int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize) - Specified by:
setPixels
in interfaceImageConsumer
-
setProperties
- Specified by:
setProperties
in interfaceImageConsumer
-