drawing in different layers in VC++
-
Is it possible to draw in different layers? So that if you erase something in one layer whatever you have drawn on the layers beneath won't get erased.
no, there is no built-in layer concept in VC++ or GDI. you'll have to come up with a custom layering mechanism. i've done it by drawing each layer into its own CBitmap/HBITMAP, then drawing the Bitmaps into a final composite bitmap for rendering to the screen.
-
no, there is no built-in layer concept in VC++ or GDI. you'll have to come up with a custom layering mechanism. i've done it by drawing each layer into its own CBitmap/HBITMAP, then drawing the Bitmaps into a final composite bitmap for rendering to the screen.
hai I want some small rectangles on one layer. Then a line has to move from one end to another(which will be like drawing line ..erasing that and drawing next line in new position).This line I want in another layer so that the rectangles are not erased. When I tried to do both rectangles and lines together the rectagles are getting erased.So if i have them in separate layers then change inone layer will not affect the other. So is it possible to have line drawing in one layer and rectangles in another ?