Re: Off Screen bitmap drawing
Re: Off Screen bitmap drawing
- Subject: Re: Off Screen bitmap drawing
- From: Development <email@hidden>
- Date: Mon, 31 May 2010 14:40:07 -0700
That was it, I zeroed to the data and it works
Thank you.
On May 31, 2010, at 2:34 PM, Greg Guerin wrote:
> 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
_______________________________________________
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