DESY ACOP Beans Home
de.desy.video.sw
Class CBasicPNGWriterV3
java.lang.Object
de.desy.video.sw.CBasicPNGWriterV3
public final class CBasicPNGWriterV3
- extends java.lang.Object
CBasicPNGWriterV3
implements saving to of a java.awt.Image to PNG file.
A header containing metaproperties of the Image is passed additionally in order to
write them out to an additional .txt file.
- Version:
- $Id: Templates.xml,v 1.10 2008/06/20 16:10:13 sweisse Exp $
- Author:
- Stefan Weisse
Method Summary |
static boolean |
write(java.io.File aFile,
java.awt.Image aImg,
CVideoHeader3 aHdr)
saves the java.awt.Image passed to a newly created (overwritten) PNG file. |
static boolean |
write(java.lang.String aFileName,
java.awt.Image aImg,
CVideoHeader3 aHdr)
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 |
CBasicPNGWriterV3
public CBasicPNGWriterV3()
write
public static boolean write(java.lang.String aFileName,
java.awt.Image aImg,
CVideoHeader3 aHdr)
- convenience overload, accepts filename as String instead of File class
- See Also:
write( File, Image, CVideoHeader3)
write
public static boolean write(java.io.File aFile,
java.awt.Image aImg,
CVideoHeader3 aHdr)
- saves the java.awt.Image passed to a newly created (overwritten) PNG file.
Additional metadata describing the Image is taken from a special header and
put into an additional textfile placed beside the PNG file.
- Parameters:
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
- Returns:
- true - image contents and text file were successfully saved
false - some error (IOException on png or txt)
Copyright © 2009. All Rights Reserved.