• 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
UIImage from Photo Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIImage from Photo Library


  • Subject: UIImage from Photo Library
  • From: Development <email@hidden>
  • Date: Thu, 25 Feb 2010 09:30:50 -0700

Alright, I'm having the strangest issue. When I download an image from the internet or pick it up from disk I use I load it as NSData, then initialize the UIImage from the data. This is because when I write files to disk I am writing them as png, being that png is the default for iPhone/iPod. When I do this, transparency is preserved and the image looks exactly like I expect...
However. If I save an image to the photo library via Safari. For instance I saved an icon in png format with transparency to the library. If I load this image with the UIImagePickerController what I end up with is a UIImage who's transparency is lost and instead it's the image in a black background.
I have not found anything in the imagepicker header or uimage header that has anything to do with transparency that I know of. Is there a trick to preserving transparency when receiving the image from UIImagePickerController?



April._______________________________________________

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

  • Follow-Ups:
    • Re: UIImage from Photo Library
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: NSWindow - how to resize it keeping aspect ratio?
  • Next by Date: Re: NSColorPanel changeColor not called
  • Previous by thread: Re: NSColorPanel changeColor not called [work around]
  • Next by thread: Re: UIImage from Photo Library
  • Index(es):
    • Date
    • Thread