• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
saving a NSImage/NSImageView to file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: saving a NSImage/NSImageView to file
      • From: John Pannell <email@hidden>
  • Prev by Date: Re: simple AppKit / multithreading question
  • Next by Date: Re: [Advice] Inspecting a Plain Text File
  • Previous by thread: Re: How do you remove specific characters from a NSString?
  • Next by thread: Re: saving a NSImage/NSImageView to file
  • Index(es):
    • Date
    • Thread