• 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: Color separations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color separations?


  • Subject: Re: Color separations?
  • From: Marcel Weiher <email@hidden>
  • Date: Sun, 29 Sep 2002 15:05:31 +0200

On Saturday, September 28, 2002, at 10:10 Uhr, Mike Davis wrote:

Anyone know how to draw a NSView in a particular process color?

I looked on cocadev.mamasam.com and came up with a blank.

Well, since you are controlling the drawing, you just modify the colors appropriately when set.

In general, it isn't possible with the existing APIs, and I think Apple dropped the ball on this, because all the drawing APIs are quite opaque.

If drawing actually occured via NSGraphicContexts, it would be (easily) possible to create "decorators" that filted the drawing commands on the way to the graphics subsystem.

If CoreGraphics exposed the bottlenecking function (that surely exists), it would be possible to do this at the CoreGraphics level.

Alas, both are closed/opaque, so it simply isn't possible.

One solution would be to develop your own object-oriented "graphics context", and then use that for drawing instead of calling Apple routines directly. In fact, this is exactly what I have done.

I have been thinking about making the basic drawing-stream abstraction available as OpenSource, along with specific contexts/drawing-streams that connect to Apple's graphic subsystems. Would there be interest in creating a "standard" flexible drawing(-stream)/graphic-context abstraction that is independent of (but can be connected to) Apple's technology?

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Color separations? (From: Mike Davis <email@hidden>)

  • Prev by Date: Re: NSImageView scrolling
  • Next by Date: Re: Color separations?
  • Previous by thread: Re: Color separations?
  • Next by thread: Re: Color separations?
  • Index(es):
    • Date
    • Thread