[5220] in java-interest

home help back first fref pref prev next nref lref last post

PICT, JPEG, etc. (was Re: Images)

daemon@ATHENA.MIT.EDU (brian sharon)
Fri Feb 2 13:23:15 1996

Date: Fri, 2 Feb 1996 10:24:55 -0600 (CST)
From: brian sharon <brian@jjt.com>
To: SAXM@aol.com
cc: java-interest@java.sun.com
In-Reply-To: <960201175909_133413945@emout06.mail.aol.com>

I'm sure others have also responded, but - JPEG support is included.  
Just do a getImage() the same as you would for a GIF file.  

I've never tried PICT but I'd be really surprised if it's in there.  PICT
is really easy to read on a Mac and really hard everywhere else.  The PICT
definition in Inside Macintosh is confusing to say the least (and crosses
2 volumes of the book).  Apple actively discourages you from trying to
figure out how a PICT file is stored; they'd rather you used their opaque
function calls to get the image data.  I'm expressing no opinion here on
the wisdom of that approach (I don't think this is the place); I can say I
had a nightmarish time once figuring out how a JPEG-compressed PICT file
was stored, just so that I could create one with a Windows app.  So I
would say that PICT is not a terribly portable solution.  TIFF would be a
better choice for a portable image format to add support for, if you ask
me. 

Not that anyone did. 

But then again, after the big merger, maybe PICT will become the new Java 
standard image file format!  Stay tuned!

--brian		http://www.paranoia.com/~brian

On Thu, 1 Feb 1996 SAXM@aol.com wrote:

> Is there a class to manipulate JPEG and PICT files or am I limited to using
> 8-bit GIF images in my applications?
> Thank you.
> SAXM
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
> 
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post