Swapping NSBitmapImageRep bitmapData's
Swapping NSBitmapImageRep bitmapData's
- Subject: Swapping NSBitmapImageRep bitmapData's
- From: Ken Tabb <email@hidden>
- Date: Mon, 11 Jun 2001 16:47:20 +0100
Hi,
is there any way to swap the bitmapData array in an NSBitmapImageRep? I
have some image processing code in which I would like to swap the array
being pointed to by the NSBitmapImageRep. The 2 arrays are of the same
length / pixel order / depth etc., just showing a different picture.
Is this possible... the API docs only seem to suggest ways of getting an
NSBitmapImageRep's bitmapData, rather than setting it.
... Or am I missing the fact that doing so would screw any NSImages which
had formed from the NSBitmapImageRep? What would be the best way to
'rebuild' an NSImage from the (newly swapped) NSBitmapImageRep's
bitmapData, rather than having to re-allocate memory etc.?
Thanks in advance for any feeders,
the boy Ken
---------
Ken Tabb.
Mac & UNIX C/C++/Java developer (Health & Human Sciences),
Machine Vision researcher/programmer (Computer Science),
University of Hertfordshire, England
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider