Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public final class ImageLoader extends Object implements ImageConsumer
Graphics.drawImage calls.COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT| Constructor and Description |
|---|
ImageLoader(Image image,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
imageComplete(int status) |
void |
loadImage()
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) |
public void imageComplete(int status)
imageComplete in interface ImageConsumerpublic void loadImage()
throws InterruptedException
InterruptedExceptionpublic void setColorModel(ColorModel mode)
setColorModel in interface ImageConsumerpublic void setDimensions(int width,
int height)
setDimensions in interface ImageConsumerpublic void setHints(int flags)
setHints in interface ImageConsumerpublic void setPixels(int x,
int y,
int width,
int height,
ColorModel model,
byte[] pixels,
int offset,
int scansize)
setPixels in interface ImageConsumerpublic void setPixels(int x,
int y,
int width,
int height,
ColorModel model,
int[] pixels,
int offset,
int scansize)
setPixels in interface ImageConsumerpublic void setProperties(Hashtable<?,?> properties)
setProperties in interface ImageConsumerCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.