• 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: Advice on offscreen drawing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice on offscreen drawing.


  • Subject: Re: Advice on offscreen drawing.
  • From: "Erik M. Buck" <email@hidden>
  • Date: Wed, 13 Mar 2002 19:47:51 -0600

Draw directly into a suitably configured bitmap image rep
See NSImageRep and -lockFocus
You can also just allocate a buffer for your image. Draw into the buffer
using standard pointer math to set pixel data. Then initialize an image rep
from your data.


----- Original Message -----
From: "Oscar Morales Vivs" <email@hidden>
To: <email@hidden>
Sent: Wednesday, March 13, 2002 5:40 PM
Subject: Advice on offscreen drawing.


> Hi there. I'm about to start testing on a raytracer renderer I'm
> building (big bunch of C++ code), and I'd like to build a Cocoa front
> end for it. I've checked the reference for drawing in views (NSImage et
> al), but what I need is just a pure 32-bit size-configurable 2D pixel
> matrix I can draw on the screen after I finish the raytracing (i.e. a
> pixmap) easily.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Advice on offscreen drawing.
      • From: Oscar Morales Vivó <email@hidden>
References: 
 >Advice on offscreen drawing. (From: Oscar Morales Vivó <email@hidden>)

  • Prev by Date: Option-Key "alternative" application behavior == mnemonics?
  • Next by Date: Re: NSScanner? (was Re: NEWBIE: Easier way to do strings?)
  • Previous by thread: Advice on offscreen drawing.
  • Next by thread: Re: Advice on offscreen drawing.
  • Index(es):
    • Date
    • Thread