Re: Draw BitmapContext to screen repeatedly, Pre-Tiger
Re: Draw BitmapContext to screen repeatedly, Pre-Tiger
- Subject: Re: Draw BitmapContext to screen repeatedly, Pre-Tiger
- From: Scott Thompson <email@hidden>
- Date: Mon, 25 Sep 2006 10:03:41 -0500
On Sep 22, 2006, at 1:57 PM, Jordan Evans wrote:
I need to draw CG paths to a bitmap context, then repeatedly draw them
to the screen. I don't have Tiger so I can't use CGLayer. Anyone
have example code on how to do this with 10.3.9?
Generally, what you have to do is create a CGImage from the same
memory of your bitmap context, and then draw that CGImage
repeatedly. Just keep in mind that CGImages are immutable so each
time you change the content of your bitmap context, you need to
recreate the image.
I don't have any sample code, but you can look in my book, or in
David Gelphman's book for examples.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden