• 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
Finding transparent pixels in an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding transparent pixels in an image


  • Subject: Finding transparent pixels in an image
  • From: Ron Fleckner <email@hidden>
  • Date: Fri, 26 Aug 2005 23:25:29 +1000

Hi,

I want to be able to determine if a pixel in an NSBitmapImageRep is transparent so I can change it to white. I thought I could do it if the value read from the pixel was red:0 green:0 blue:0. That actually works, but unfortunately, black pixels also give the same value, so my altered image has white not only where the original had transparency, but also where the original had pure black.

How can I tell the difference between black and transparent pixels?

Thanks for any answers/pointers/clues.

Ron
_______________________________________________
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: Finding transparent pixels in an image
      • From: Andy Matuschak <email@hidden>
  • Prev by Date: AGSocket: How to extract sender ip address?
  • Next by Date: Re: Application icon
  • Previous by thread: AGSocket: How to extract sender ip address?
  • Next by thread: Re: Finding transparent pixels in an image
  • Index(es):
    • Date
    • Thread