From Graphics into Bitmap

granadajose

New member
Joined
Jun 8, 2005
Messages
2
Programming Experience
1-3
Hi,

I need to convert a Graphics (class) object into a Bitmap (or Image) (class) object, in order to be able to add the Graphics object to an Imagelist. Could you please help me?

Thanks,
 
Could you be more specific? From where are you obtaining the Graphics object?
A Graphics object is usually used to draw onto something. For instance you can use a graphics class to draw directly to a form or other control, or to draw onto an image.
You wouldn't be able to add a Graphics object to an imagelist, only the object that you used the Graphic object to draw onto.
 
Thanks!

Thanks!

I was drawing onto a BitMap object. As you said, the BitMap objects contains all the editing made by the Graphics object, so it is not necessary to convert the Graphics object.

I really appreciate your help. You have solved a real headache for me!
 
Back
Top