• 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: Roland King <email@hidden>
  • Date: Sat, 04 Apr 2015 10:13:17 +0800

> On 4 Apr 2015, at 9:38 am, edward m taffel <email@hidden> wrote:
>
> use ColorSync.
>

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 just looked in my library of bits and pieces and found some code which write into a bitmap and reads it out again. I don’t even know when I wrote that, and it’s not used in any of my projects, but I believe that was me converting colours at low-level.

Surely there’s a better way (but then again I said ‘surely there is a better way’ when I saw the discussion on whitespace in swift and there hasn’t been one yet).

> Sent from my iPhone
>
>> On Apr 3, 2015, at 8:35 PM, Graham Cox <email@hidden> wrote:
>>
>> Is there a way to convert a CGColor to a different colorspace? It's trivial with NSColor, but I want to do the same at the lower CG level to keep the code as portable as possible between iOS and Mac. I'm sure I've done this in the past but I'm just not seeing the right function!
>>
>> --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


  • Follow-Ups:
    • 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>)

  • Prev by Date: Re: Converting colorspace of a CGColor
  • Next by Date: Re: Converting colorspace of a CGColor
  • Previous by thread: Re: Converting colorspace of a CGColor
  • Next by thread: Re: Converting colorspace of a CGColor
  • Index(es):
    • Date
    • Thread