• 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
[OT] Bitmaps for controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] Bitmaps for controls


  • Subject: [OT] Bitmaps for controls
  • From: Art Gillespie <email@hidden>
  • Date: Wed, 16 Oct 2002 06:42:15 -0400

Hi all,

For obvious reasons, I'm working on a VSTGUI drop-in replacement... when it comes to dealing with bitmaps I'm loading a PICT resource and drawing it into a offscreen graphics world, and then using CopyBits on the graphics world's PixelMap to get segments of the bitmap onto the screen.

Now, my question is this: is keeping the offscreen graphics world around the right way to cache the bitmap in Mac-Land? This is how I'm doing it now, and it works great, but it seems a bit heavyweight. However, my efforts to copy the PixelMap and then dispose the graphics world results in weird graphics and/or crashes on subsequent calls to CopyBits.

If anyone can point me to 'best-practice' resources on this kind of low-level graphics asset management in QuickDraw I'd be much appreciative.

Thanks,

Art
>>0xBA
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [slightly OT] Bitmaps for controls
      • From: Alberto Ricci <email@hidden>
    • Re: [OT] Bitmaps for controls
      • From: Urs Heckmann <email@hidden>
  • Prev by Date: Re: Getting node class data
  • Next by Date: Re: [OT] Bitmaps for controls
  • Previous by thread: Re: linear vs. log Hz
  • Next by thread: Re: [OT] Bitmaps for controls
  • Index(es):
    • Date
    • Thread