Re: Off Screen bitmap drawing
Re: Off Screen bitmap drawing
- Subject: Re: Off Screen bitmap drawing
- From: Greg Guerin <email@hidden>
- Date: Mon, 31 May 2010 14:34:51 -0700
Development wrote:
What I get is a black rectangle of scrambled colors and no
discernible resemblance to the page data.
...
void * bitmapData = malloc(byteSize); ag
IIRC, malloc() does not initialize the returned memory. Since you
don't seem to do any other initialization, you are effectively
drawing into a bit-map containing random data.
-- GG
_______________________________________________
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