Re: NSImage to JPEG file?
Re: NSImage to JPEG file?
- Subject: Re: NSImage to JPEG file?
- From: Jens Alfke <email@hidden>
- Date: Wed, 16 Jan 2019 12:17:05 -0800
> On Jan 16, 2019, at 9:59 AM, Carl Hoefs <email@hidden>
> wrote:
>
> But all of that would come "for free" if NSImage inherited from NSData, no?
Well, that wouldn’t make sense, because an NSImage isn’t a piece of data. It
can have multiple data representations (JPEG, PNG, PDF…) and it might not have
any at all if it was created directly in-memory with a pixmap. It’s a thing
that can create a data representation.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden