• 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: Converting colorspace of a CGColor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting colorspace of a CGColor


  • Subject: Re: Converting colorspace of a CGColor
  • From: edward m taffel <email@hidden>
  • Date: Sat, 04 Apr 2015 05:13:09 -0400


Sent from my iPhone

> On Apr 3, 2015, at 10:19 PM, Graham Cox <email@hidden> wrote:
>
>
>> On 4 Apr 2015, at 1:13 pm, Roland King <email@hidden> wrote:
>>
>> That’s most definitely not what Graham is looking for. He’s looking for a way to convert colours programatically, and cross-platform iOS and OSX (no colorsync on iOS).

I meant the ColorSync api (what did you think I meant?) but was not aware iOS did not rely on ColorSync,

if you had not already done so, you might look at:
https://developer.apple.com/library/ios/technotes/tn2313/_index.html#//apple_ref/doc/uid/DTS40014694-CH1-ACTIVECOLORMGMTCOLORSYNC-HOW_DOES_COLORSYNC_WORK_

> That's right. In short, a CG equivalent to -[NSColor colorUsingColorspace:] is what I need

why don't you just use cocoa?

> - I just need to ensure that colours that could originate as grays for example, end up as RGBA colours, since I'm doing work directly on the four components. Converting gray is easy enough actually, if I have to do that myself, but it would be nice if there were a funciton that would work across all possible colorspaces.
>
> I thought Id' seen a CG function for this in the past, but I can't remember where I saw it and I may be mistaken.
>
> --Graham
>
>
>
> _______________________________________________
>
> 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

_______________________________________________

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: Converting colorspace of a CGColor
      • From: Kyle Sluder <email@hidden>
    • Re: Converting colorspace of a CGColor
      • From: Graham Cox <email@hidden>
References: 
 >Converting colorspace of a CGColor (From: Graham Cox <email@hidden>)
 >Re: Converting colorspace of a CGColor (From: edward m taffel <email@hidden>)
 >Re: Converting colorspace of a CGColor (From: Roland King <email@hidden>)
 >Re: Converting colorspace of a CGColor (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Preventing Document from closing
  • Next by Date: Where are my bytes?
  • Previous by thread: Re: Converting colorspace of a CGColor
  • Next by thread: Re: Converting colorspace of a CGColor
  • Index(es):
    • Date
    • Thread