Or post your code. It can't be more than a few lines and mistakes are usually
more obvious to second set of eyes.

Brian Lichtenwalter wrote:

> >From your description it sounds like you are doing everything correctly.  For
> clues refer to the Java2D sample JPEGFlip :
>
> http://java.sun.com/products/java-media/2D/samples/Image/JPEGFlip.java
>
> Brian
>
> > X-Authentication-Warning: capra.eng.sun.com: amith set sender to
> [EMAIL PROTECTED] using -f
> > Date: Mon, 26 Apr 1999 12:45:42 -0700
> > From: Mathew Chacko <[EMAIL PROTECTED]>
> > X-Accept-Language: en
> > MIME-Version: 1.0
> > To: [EMAIL PROTECTED]
> > Subject: [java2d] JPEG Encoding
> > Content-Transfer-Encoding: 7bit
> >
> > I am just starting to look at the Graphics2D api and specially
> > interested
> > in creating graphics on the fly and saving it to disk.
> >
> > I am using the JPEG encoder from com.sun.image.codec.jpeg package.
> > Essentially I
> >
> > 1. create a Buffered image
> > 2. get the Graphics2D object from the buffered image
> > 3. draw stuff on the Graphics2D object
> > 4. create a JPEGImageEncoder with a target output stream (using
> > FileOutputStream)
> > 5. get the default JPEG Encode param
> > 6. encode the buffered image
> > 7. flush and close the output stream
> >
> > When I view the file created it is completely blank (none of the stuff
> > that
> > I drew on the Graphics2D object is present).
> >
> > Any clues would be appreciated.
> >
> > thanks
> > mathew
> > =====================================================================
> > To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> > Java 2D Home Page: http://java.sun.com/products/java-media/2D/
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 2D Home Page: http://java.sun.com/products/java-media/2D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to