Using NSBitmapImageRep, is it possible to write the JPEG representation out to 
a .JPG file on disk?

-Carl

> On Jan 15, 2019, at 4:01 PM, Jens Alfke <[email protected]> wrote:
> 
> It’s been a long time since I worked with NSImages, but it’s easy to get a 
> JPEG representation using just plain AppKit. 
> 
> Just look through the representations for an NSBitmapImageRep, then call [rep 
> representationUsingType: NSBitmapImageFileTypeJPEG options: 0].
> 
> —Jens
> 
> PS: _Please_ don’t reply to digests. It messes up the subject line and the 
> message threading.
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/newslists%40autonomy.caltech.edu
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to