Skip to content

GDI+ and Graphics

Vinod Singh

Asked Mar 17, 2009, 10:28 PM EDT1 answer
Share
LinkedInX

Hi all ,

I am facing a problem and need help form  u people ..so many thanks to u all in advance....

I have added a panel over the  other Panel and on the Base panel i am drawing a Bitmap and want to see the content of that bitmap on the child bitmap ....Is there some way to do this...

I made the child's panel background color transparent but that is not workign

Seeking for ur co-opration

thanks in advance

~vinod

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    You need to create a Graphics object by using your Panel, which you want to draw a bitmap on.

    Graphics g = Panel.CreateGraphics();

    Now use this Graphics object to draw your image on.

    g.DrawImage(...);

    In the end,

    g.Dispose();

    That will do the trick.

    0