Re: Swapping NSBitmapImageRep bitmapData's
Re: Swapping NSBitmapImageRep bitmapData's
- Subject: Re: Swapping NSBitmapImageRep bitmapData's
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 11 Jun 2001 19:07:37 +0200
On lundi, juin 11, 2001, at 05:47 PM, Ken Tabb wrote:
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.
Stupid suggestion:
Get the bitmap data of the NSBitmapImageRep and then copy the new array
into it and redisplay the NSBitmapImageRep (since they share the same
dimension, depth and others).
Keep a copy of the old current array in case you want to swap again.