Re: NSImageView PICTRepresentation?
Re: NSImageView PICTRepresentation?
- Subject: Re: NSImageView PICTRepresentation?
- From: Florent Pillet <email@hidden>
- Date: Sun, 10 Oct 2004 12:12:45 +0200
I provided the URL several times already to my code for image format
conversion. Look at:
http://cvs.sourceforge.net/viewcvs.py/osx-palm-tools/PalmServices/
And download "NSImage-PalmExtensions.{h,m}". Don't worry about the
"PalmExtensions" category,
it's mostly methods to convert a NSImage to several formats, mostly
using the Quicktime
graphics converters. Supported output formats are PICT, PICTHandle
(in-memory), JPEG, BMP,
GWorld, PNG (NSData), PNG (Handle). If you need other formats, just
grab the code and
customize it to your needs, it's BSD-licensed code (opensource).
Florent
On 8 oct. 04, at 17:54, R. Scott Thompson wrote:
Baring that, the only way (at least that I know) to get PICT data
would be
to get the bitmap pixels directly and then use Quickdraw to make a
PICT with that
data. Of how to do that, I remain cheerfully innocent.
Bascially, what you would end up doing is putting the pixels into a
GWorld, Asking the GWorld to record a picture, and then using CopyBits
to copy the pixels back on top of themselves.
Another way to do it would be to get the pixels and ask QuickTime to
export a PICT image of those pixels for you.
--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463
http://www.florentpillet.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden