Re: How to write an NSImage to a JPEG file
Re: How to write an NSImage to a JPEG file
- Subject: Re: How to write an NSImage to a JPEG file
- From: Craig Hagerman <email@hidden>
- Date: Fri, 22 Feb 2002 00:51:24 -0500
Shayne,
I was wondering the same thing. No one else has given an answer yet so...
I have just assumed that a cocoa NSImage is analogous to a Java Image (awt
Image or swing IconImage) in that it is read only. If this is not so then
someone PLEASE correct me. Given that I would assume that you must use
quicktime, or even OpenGL (but this seems like overkill) to write the image.
I am just trying to understand this right now myself so I can't give any
concrete guidance. I am now looking through some sample code
(here for example:
http://developer.apple.com/samplecode/)
that uses QuickTime in an effort to understand:
1. ...How to use it together with cocoa. (Use an NSMovie / NSMovieView
instead of an NSImage for starters.)
2. ...The quicktime API. Well not really understand (it is pretty HUGE) but
more like get enough of a handle on it to be able to know how to do simple
things.
Can anyone expand on this any more?
Craig Hagerman
on 2/21/02 3:11 PM, Shayne Packer at email@hidden wrote:
>
(resubmitted with a subject)
>
>
I need to write an NSImage out to a JPEG file.
>
>
In looking at the archives, I noticed that on 22 Oct 2001, sunnyvale
>
posted this question: "how to save a image in NSImage to pict format file"
>
, with this comment: "I can save the NSImage to GIF or JPEG but not PICT".
>
I've also seen other posts around this subject.
>
>
How can I save it to my new JPEG file?
>
>
Are there any settings for the compression quality?
>
>
thanks, Shayne
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.