Re: Quick question: easy way to draw bitmap?
Re: Quick question: easy way to draw bitmap?
- Subject: Re: Quick question: easy way to draw bitmap?
- From: "Jeff Bland" <email@hidden>
- Date: Fri, 13 Jul 2007 15:53:23 +0900
Ah,
initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:
hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:
looks like what I need. And it looks like it will point to my data (rather
than copying the bitmap data to its own buffer). My bitmp data however is
being constantly updated (animated), so how do I tell the
view/image/imagerep that the data has been updated and it needs to redraw?
Thanks,
- Jeff Bland
On 7/13/07, ∞ <email@hidden> wrote:
Il giorno 13/lug/07, alle ore 08:33, Jeff Bland ha scritto:
But an NSImage takes one or more
NSImageReps, so I subclassed that and instantiated one.
You probably just need to pass the data to NSBitmapImageRep. See its docs
for details.
- ∞
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden