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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to