Re: Custom Drawing?
Re: Custom Drawing?
- Subject: Re: Custom Drawing?
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 29 Jan 2003 15:12:53 +0100
On Wednesday, January 29, 2003, at 02:12 PM, Steve wrote:
Hi,
I have pixel-by-pixel drawing algorithms that I want to use within
Cocoa.
In Carbon I use custom display classes that I've written around
GWorlds.
Is there a similar way I can achieve this in Cocoa? ... or can I
integrate Carbon GWorlds?
I've looked in my 3 Cocoa books, but there's no reference to this kind
of thing.
Is there a good source of documentation from which I can study this?
On a related note (and as a quick temporary fix!) , are there simple
Cocoa toolbox calls for drawing individual pixels?
(... or are lines of length 1 the way to go?)
Using a NSBitmapImageRep can be a solution.
Some sample code using a NSBitMapImageRep or the CoreGraphics
equivalent for pixel by pixel drawing:
http://s.sudre.free.fr/Software/Source/scswirl.tar.gz
_______________________________________________
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.