• 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: Draw BitmapContext to screen repeatedly, Pre-Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Draw BitmapContext to screen repeatedly, Pre-Tiger (From: "Jordan Evans" <email@hidden>)

  • Prev by Date: "Jittery" NSMatrix resize problems.
  • Next by Date: Application design & menu question
  • Previous by thread: Draw BitmapContext to screen repeatedly, Pre-Tiger
  • Next by thread: Unable to add item to Keychain when running as Daemon: ENOENT
  • Index(es):
    • Date
    • Thread