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

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.

References: 
 >Custom Drawing? (From: Steve <email@hidden>)

  • Prev by Date: Re: Event loop: getting access once per loop?
  • Next by Date: Re: Setting the Default Browser?
  • Previous by thread: Custom Drawing?
  • Next by thread: Re: Custom Drawing?
  • Index(es):
    • Date
    • Thread