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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/development%40fornextsoft.com > > This email sent to developm...@fornextsoft.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com