Creating a bitmap image

hoop_warrior

New member
Joined
Oct 4, 2005
Messages
3
Programming Experience
Beginner
Hello all,
Im new to graphics in vb.net , i was trying to create a bitmap from file .
"Private Sub Map(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim bmp As New Bitmap("C:\Documents and Settings\12.bmp")
Dim g As Graphics = Graphics.FromImage(bmp)
End Sub"

and im getting the error "Additional information: A Graphics object cannot be created from an image that has an indexed pixel format."

Can any one tell wht to do
Thanks in advance
 
Back
Top