|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.desy.video.sw.CBasicImageLoaderV3
public final class CBasicImageLoaderV3
CBasicImageLoaderV3
provides loading of any Java SE supported bitmap image
file format to Video System v3 TINE IMAGE format type. While loading, conversion to
grayscale image data can be done if desired. Main interest for current usage is PNG file loading from disk.
The loadable formats are (according to tests using printLoadableFormats()
):
Constructor Summary | |
---|---|
CBasicImageLoaderV3()
|
Method Summary | |
---|---|
static boolean |
loadImageFile(java.lang.String aFileName,
IMAGE aOutImage)
convenience overload, defaults grayscale conversion to false |
static boolean |
loadImageFile(java.lang.String aFileName,
IMAGE aOutImage,
boolean aChangeToGrey)
loads an image file with a give filename from disk and puts its contents to TINE IMAGE data type |
static boolean |
loadImageResource(java.lang.String aFileName,
IMAGE aOutImage,
boolean aChangeToGrey)
loads an image file with a give filename out of a resource bundle (e.g. |
static void |
printLoadableFormats()
prints all formats that Java ImageIO class is able to read to stdout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CBasicImageLoaderV3()
Method Detail |
---|
public static final void printLoadableFormats()
public static final boolean loadImageResource(java.lang.String aFileName, IMAGE aOutImage, boolean aChangeToGrey)
aFileName
- file name (may include relative resource path)aOutImage
- TINE IMAGE data type to put image contents to@param
- aChangeToGrey if true, image data is downscaled to grayscale before returned
public static final boolean loadImageFile(java.lang.String aFileName, IMAGE aOutImage)
loadImageFile( String, IMAGE, boolean )
public static final boolean loadImageFile(java.lang.String aFileName, IMAGE aOutImage, boolean aChangeToGrey)
aFileName
- file name (may include path)aOutImage
- TINE IMAGE data type to put image contents toaChangeToGrey
- if true, image data is downscaled to grayscale before returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |