|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.video.displayer.ImageParser
public class ImageParser
Method Summary | |
---|---|
static ImageParser |
instance()
|
static boolean |
loadImageFile(java.lang.String aFileName,
de.desy.tine.types.IMAGE aOutImage)
Deprecated. use loadImageFile(URL, IMAGE, boolean) instead |
static boolean |
loadImageFile(java.lang.String aFileName,
de.desy.tine.types.IMAGE aOutImage,
boolean aChangeToGrey)
Deprecated. use loadImageFile(URL, IMAGE, boolean) instead |
static boolean |
loadImageFile(java.net.URL url,
de.desy.tine.types.IMAGE outImage,
boolean toGrey)
Loads an image file with a give filename from disk and puts its contents to TINE IMAGE data type |
static boolean |
loadIMM(java.lang.String aFileName,
de.desy.tine.types.IMAGE aOutImage)
loads an IMM (proprietary, VSV2, raw, greyscale) image file with a give filename from disk and puts its contents to TINE IMAGE data type. |
static void |
printLoadableFormats()
prints all formats that Java ImageIO class is able to read to stdout. |
static void |
refresh()
|
static boolean |
write(java.io.File aFile,
java.awt.Image aImg,
de.desy.tine.types.IMAGE timage)
saves the java.awt.Image passed to a newly created (overwritten) PNG file. |
static boolean |
write(java.lang.String aFileName,
java.awt.Image aImg,
de.desy.tine.types.IMAGE timage)
convenience overload, accepts filename as String instead of File class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ImageParser instance()
public static void refresh()
public static final boolean loadImageFile(java.lang.String aFileName, de.desy.tine.types.IMAGE aOutImage)
loadImageFile(URL, IMAGE, boolean)
instead
loadImageFile( String, IMAGE, boolean )
public static final boolean loadImageFile(java.lang.String aFileName, de.desy.tine.types.IMAGE aOutImage, boolean aChangeToGrey)
loadImageFile(URL, IMAGE, boolean)
instead
aFileName
- file name (may include path)aOutImage
- TINE IMAGE data type to put image contents toaChangeToGrey
- if true, image data is down scaled to grayscale before
returned
public static final boolean loadImageFile(java.net.URL url, de.desy.tine.types.IMAGE outImage, boolean toGrey)
url
- input a URL
to read from.outImage
- TINE IMAGE data type to put image contents totoGrey
- if true, image data is down scaled to grayscale before
returned
public static final boolean loadIMM(java.lang.String aFileName, de.desy.tine.types.IMAGE aOutImage)
aFileName
- file name (may include path)aOutImage
- TINE IMAGE data type to put image contents to
public static void printLoadableFormats()
public static boolean write(java.lang.String aFileName, java.awt.Image aImg, de.desy.tine.types.IMAGE timage)
write( File, Image, VideoHeaderV3)
public static boolean write(java.io.File aFile, java.awt.Image aImg, de.desy.tine.types.IMAGE timage)
aFile
- java.io.File where to store the png imageaImg
- Image data to be written to PNGaHdr
- contains meta properties of Image that will be written to .txt
file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |