Re: Advice on offscreen drawing.
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.