All Packages Class Hierarchy This Package Previous Next Index
Class picture.JpegEncoder
java.lang.Object
|
+----picture.ImageEncoder
|
+----picture.JpegEncoder
- public class JpegEncoder
- extends ImageEncoder
Write out an image as a JPEG.
DOESN'T WORK YET.
Fetch the software.
Fetch the entire Acme package.
- See Also:
- ToJpeg
-
height
-
-
jfifHuff100Header
-
-
jfifNoHuff100Header
-
-
qfactor
-
-
rgbPixels
-
-
width
-
-
JpegEncoder(Image, OutputStream)
-
-
JpegEncoder(ImageProducer, OutputStream)
-
-
encodeDone()
- Subclasses implement this to finish an encoding.
-
encodePixels(int, int, int, int, int[], int, int)
- Subclasses implement this to actually write out some bits.
-
encodeStart(int, int)
- Subclasses implement this to initialize an encoding.
-
setQfactor(int)
-
-
writeJfifHuffHeader()
-
-
writeJfifNoHuffHeader()
-
qfactor
int qfactor
width
int width
height
int height
rgbPixels
int rgbPixels[][]
jfifHuff100Header
private static byte jfifHuff100Header[]
jfifNoHuff100Header
private static byte jfifNoHuff100Header[]
JpegEncoder
public JpegEncoder(Image img,
OutputStream out) throws IOException
JpegEncoder
public JpegEncoder(ImageProducer prod,
OutputStream out) throws IOException
setQfactor
public void setQfactor(int qfactor)
encodeStart
void encodeStart(int width,
int height) throws IOException
- Subclasses implement this to initialize an encoding.
- Overrides:
- encodeStart in class ImageEncoder
encodePixels
void encodePixels(int x,
int y,
int w,
int h,
int rgbPixels[],
int off,
int scansize) throws IOException
- Subclasses implement this to actually write out some bits.
- Overrides:
- encodePixels in class ImageEncoder
encodeDone
void encodeDone() throws IOException
- Subclasses implement this to finish an encoding.
- Overrides:
- encodeDone in class ImageEncoder
writeJfifHuffHeader
private void writeJfifHuffHeader() throws IOException
writeJfifNoHuffHeader
private void writeJfifNoHuffHeader() throws IOException
All Packages Class Hierarchy This Package Previous Next Index