How to create a BMP at run-time

AlexCode

Well-known member
Joined
Jul 7, 2003
Messages
931
Location
Portugal
Hi...

Again the subject says it all...

I need to create a bmp at run-time, apply a color to its background and have the bmp object to use it... how?

Thanks!

Alex :p
 
You mean like a blank bitmap? The New Bitmap(#, #) should make a blank bitmap with the specified size.

Dim Bmp As Bitmap Create a bitmap.
Dim GFX As Graphics Graphics object aimed at this bitmap.
Bmp = New Bitmap(200, 200) A 200x200 bitmap.
GFX = Graphics.FromImage(Bmp)
:)
 
Back
Top