C# GDI+ layers control problem

  • Thread starter Thread starter pei_world
  • Start date Start date
P

pei_world

hi

I want to know how to create multiple layers in C#. and how can I control
them?
for example, how to delete one icon from drawed image layer?
any example will be good


pei
 
Pei,

This is something you will have to manage yourself, as .NET Graphics
primitives don't really support this kind of activity. What you might want
to do is create separate images, with separate device contexts, which would
be your "layers". When you want to combine them all, you would just take
all the layers, and draw them onto another device context, and dispose of
the layers.

It might be a little intensive (resource-wise) to do something like
this, but the general idea is the same.

Hope this helps.
 
Back
Top