net.sf.mmapps.applications.developer.util
Class JpegCoder
java.lang.Object
net.sf.mmapps.applications.developer.util.JpegCoder
- All Implemented Interfaces:
- java.awt.image.ImageObserver
- public class JpegCoder
- extends java.lang.Object
- implements java.awt.image.ImageObserver
wrapper class to conver java.awt.Image into a jpeg encoded stream
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
void |
encode(java.awt.Image img,
java.io.OutputStream out)
encode a image to the OutputStream using jpeg |
boolean |
imageUpdate(java.awt.Image img,
int x,
int y,
int w,
int h,
int z)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpegCoder
public JpegCoder()
encode
public void encode(java.awt.Image img,
java.io.OutputStream out)
throws java.io.IOException
- encode a image to the OutputStream using jpeg
- Throws:
java.io.IOException
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int x,
int y,
int w,
int h,
int z)
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver
Copyright © 2003-2004 SourceForge. All Rights Reserved.