• 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: invertrect, any cocoa versions suggested?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invertrect, any cocoa versions suggested?


  • Subject: Re: invertrect, any cocoa versions suggested?
  • From: John Stiles <email@hidden>
  • Date: Tue, 24 Jan 2006 07:47:30 -0800


Camillo Lugaresi wrote:
On 24/gen/06, at 06:15, John Stiles wrote:

The problem here is that Core Graphics doesn't really work in terms of "pixels" per se. It's built around resolution-independent vector graphics concepts. For example, you can apply a transformation matrix to the view which will skew, rotate or scale it. So conceptually, there really aren't any "pixels" for you to get at, unfortunately.

I don't think CG offers an "invert" fill mode either, unfortunately. I can't see any conceptual reason why not. My only hunch is maybe that "invert" doesn't seem very useful in a PostScript world, and CoreGraphics is descended from Display PostScript.

Actually, using kCGBlendModeDifference with a fully-white source image should invert the colors of the background image (1.0 - c).


Sweet, I looked around but didn't see that one. Does that mean the OP /can/ draw inverted rects with CG?
_______________________________________________
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: invertrect, any cocoa versions suggested?
      • From: Camillo Lugaresi <email@hidden>
References: 
 >invertrect, any cocoa versions suggested? (From: Robert Dell <email@hidden>)
 >Re: invertrect, any cocoa versions suggested? (From: Jim Correia <email@hidden>)
 >Re: invertrect, any cocoa versions suggested? (From: Robert Dell <email@hidden>)
 >Re: invertrect, any cocoa versions suggested? (From: John Stiles <email@hidden>)
 >Re: invertrect, any cocoa versions suggested? (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: Objects cross calls
  • Next by Date: Re: KVC with an path, AppleScript and InterfaceBuilder
  • Previous by thread: Re: invertrect, any cocoa versions suggested?
  • Next by thread: Re: invertrect, any cocoa versions suggested?
  • Index(es):
    • Date
    • Thread