< prev index next >
core/JemmyAWTInput/src/org/jemmy/image/PNGEncoder.java
Print this page
*** 42,57 ****
import java.util.zip.CRC32;
import java.util.zip.Deflater;
import java.util.zip.DeflaterOutputStream;
import org.jemmy.control.ScreenArea;
! /** This class allows to encode BufferedImage into B/W, greyscale or true color PNG
* image format with maximum compression.<br>
* It also provides complete functionality for capturing full screen, part of
* screen or single component, encoding and saving captured image info PNG file.
* @author Adam Sotona
! * @version 1.0 */
public class PNGEncoder extends Object {
/** black and white image mode. */
public static final byte BW_MODE = 0;
/** grey scale image mode. */
--- 42,59 ----
import java.util.zip.CRC32;
import java.util.zip.Deflater;
import java.util.zip.DeflaterOutputStream;
import org.jemmy.control.ScreenArea;
! /**
! * This class allows to encode BufferedImage into B/W, greyscale or true color PNG
* image format with maximum compression.<br>
* It also provides complete functionality for capturing full screen, part of
* screen or single component, encoding and saving captured image info PNG file.
* @author Adam Sotona
! * @version 1.0
! */
public class PNGEncoder extends Object {
/** black and white image mode. */
public static final byte BW_MODE = 0;
/** grey scale image mode. */
*** 61,75 ****
OutputStream out;
CRC32 crc;
byte mode;
- /**
- *
- * @param file
- * @throws java.io.FileNotFoundException
- */
public PNGEncoder(File file) throws FileNotFoundException {
this(new FileOutputStream(file));
}
/** public constructor of PNGEncoder class with greyscale mode by default.
* @param out output stream for PNG image format to write into
--- 63,72 ----
< prev index next >