saving a NSImage/NSImageView to file
saving a NSImage/NSImageView to file
- Subject: saving a NSImage/NSImageView to file
- From: James Housley <email@hidden>
- Date: Sat, 12 Mar 2005 13:47:12 -0500
I would think this is simple but I haven't been able get it to work, or
find any good pointers after searching. Basically I want to load an
image, (GIF, JPG or PNG); do some basic editing and save to a file. I
would like to beable to save to (GIF, JPG or PNG), but if I have to
limit to saving to the same format as it was loaded as that is okay for
starters. If I load a PNG and then get NSBitmapImageRep of the image I
can save it to a PNG and it looks right. Saving to GIF or JPG gives a
black background. Loading a JPG fails on NSBitmapImageRep, I get a
NSCachedImageRep.
Do I need to always go through a TIFFimageRep?
I would appreciate any pointers to a good tutorial or some simple
sample code.
Thanks,
Jim
--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
email@hidden http://www.FreeBSD.org The Power to Serve
email@hidden http://www.TheHousleys.net
---------------------------------------------------------------------
Do not meddle in the affairs of dragons, for you are crunchy and taste
good with ketchup.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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