• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Off Screen bitmap drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Off Screen bitmap drawing (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Core Animation - Animation Sequence
  • Next by Date: Re: Managed Object Context Reference
  • Previous by thread: Re: Off Screen bitmap drawing
  • Next by thread: font glyphs on different hardware
  • Index(es):
    • Date
    • Thread