tags:

views:

20

answers:

1

How could I create a bitmap which is initially completely transparent. I would then like to do some drawing to it, like g.drawImage() and then I would like to save it as a png. How could I do this?

Thanks

+1  A: 
Dim bmp As New Bitmap(width, height)
Dim g As Graphics = Graphics.FromImage(bmp)
g.Clear(Color.Transparent)

''Perform Drawing here

bmp.Save("ZOMG AMAZING DRAWING.png", System.Drawing.Imaging.ImageFormat.Png)
AndyPerfect
i name all my files "ZOMG AMAZING DRAWING". i am on file number 23589252.
Jason