• 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
Re: Getting CGColor components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting CGColor components


  • Subject: Re: Getting CGColor components
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 12 Jun 2011 17:05:37 +0200

Am 12.06.2011 um 01:12 schrieb Development:

> According to all the examples I have found the following code should give me the RGB components of any UIColor.CGColor I pass to it....

CGColorGetComponents() will only give you RGB components if the color actually *is* a RGB color.

You should check that with CGColorGetColorSpace() beforehand.


Andreas_______________________________________________

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

References: 
 >Getting CGColor components (From: Development <email@hidden>)

  • Prev by Date: Memory Management for XML Parsing
  • Next by Date: Memory Management for an Array
  • Previous by thread: Re: Getting CGColor components
  • Next by thread: layoutSubviews doesn't always work (iOS 4.3 on iPad Simulator)
  • Index(es):
    • Date
    • Thread