• 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: CGContextSetRGBFillColor() off by one?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContextSetRGBFillColor() off by one?


  • Subject: Re: CGContextSetRGBFillColor() off by one?
  • From: Michael Vannorsdel <email@hidden>
  • Date: Fri, 30 May 2008 18:15:55 -0600

This is from the CGColorSpaceCreateDeviceRGB docs:

In Mac OS X v10.4 and later, this color space is no longer device- dependent and is replaced by the generic counterpart— kCGColorSpaceGenericRGB—described in “Color Space Names”. If you use this function in Mac OS X v10.4 and later, colors are mapped to the generic color spaces. If you want to bypass color matching, use the color space of the destination context.

So since 10.4 the device colorspaces are now just generic ones.


On May 30, 2008, at 1:38 PM, Ken Ferry wrote:

Well... I'm not sure that's true any more is it? I mean, don't all the
DeviceXXX colour spaces get mapped to the new "Generic" ones as of 10.4?

I don't believe so, and that isn't what I see in testing.

I filed a bug for this yesterday.  My understanding, which may be
flawed, is that using a 'device' colorspace is a pledge that you know
that your color components are already with respect to the colorspace
of the destination, so require no further color correction.

_______________________________________________

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: CGContextSetRGBFillColor() off by one?
      • From: "Ken Ferry" <email@hidden>
References: 
 >CGContextSetRGBFillColor() off by one? (From: Mike Manzano <email@hidden>)
 >Re: CGContextSetRGBFillColor() off by one? (From: Uli Kusterer <email@hidden>)
 >Re: CGContextSetRGBFillColor() off by one? (From: Mike Manzano <email@hidden>)
 >Re: CGContextSetRGBFillColor() off by one? (From: "Ken Ferry" <email@hidden>)
 >Re: CGContextSetRGBFillColor() off by one? (From: Alastair Houghton <email@hidden>)
 >Re: CGContextSetRGBFillColor() off by one? (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: Ending Editing when Doc Saves?
  • Next by Date: Re: Application support for Time Machine
  • Previous by thread: Re: CGContextSetRGBFillColor() off by one?
  • Next by thread: Re: CGContextSetRGBFillColor() off by one?
  • Index(es):
    • Date
    • Thread