Re: Off Screen bitmap drawing

2010-05-31 Thread Development
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 >

Re: Off Screen bitmap drawing

2010-05-31 Thread Greg Guerin
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 ar

Re: Off Screen bitmap drawing [iPhone]

2010-05-31 Thread Development
Wow I'm sorry I should have mentioned I'm doing this on iPhone On May 31, 2010, at 11:11 AM, Development wrote: > Ok... I'm really new to coregraphics and i've run in to a problem i cant seem > to figure out. > I'm trying to take page data from a pdf and draw a thumbnail size preview... > I'm