Resizing and NSImage to a new NSImage but keeping all metadata
Resizing and NSImage to a new NSImage but keeping all metadata
- Subject: Resizing and NSImage to a new NSImage but keeping all metadata
- From: Alexander Cohen <email@hidden>
- Date: Mon, 30 Aug 2010 14:34:55 -0400
Hi,
I need to take an NSImage, scale it down a bit while drawing it into an new NSImage and all along keep all the metadata associated with the original image ( such as the color profile, etc, ... ). Are there any example out there that show how to do this.
I've tried creating a new NSImage of the correct size, adding a new bitmap rep to it ( that already has the copied metadata ) then drawing into that image but i always end up with an NSImage that does not have my bitmap rep in it anymore but only a CGImageCachedRep ( or somthing similar to that class name ) that does not contain the metadata anymore.
Any help appreciated.
thx
AC
_______________________________________________
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