dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Drawing in layers

  1. #1
    Join Date
    Aug 2001
    Location
    Sarajevo, Bosnia
    Posts
    42

    Drawing in layers

    Hi guys!

    Does anybody has any idea how to use API functions to draw in different layers, so to be able to turn off a layer when not needed any more and get the original picture back? I find it sometimes too expensive to redraw a whole picture if I just need to remove some icons or other item drawn on it, or to calculate a rect of the pic to be "cut off" and then bitblt-ed from the resource bmp again to "fill the hole".

    Any help, idea, or pointer to something similar would be greatly appreciated. Thanks.

  2. #2
    Join Date
    Dec 2001
    Location
    Norway
    Posts
    90
    You problably have to load each layer as transparent images and redraw them each time there is a layerchange..This isnt as bad as it sounds though, just keep track of all handles in arrays

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)