Hi everyone,
a graphics question for you:
I have a graphic (not an image) and I'd like to write it to a file.
The image class has a save method that takes a file name the graphic class has simply a save method (no paramters).
I've tried casting my graphic to an image but it doesn't seem to like it, can anyone tell me how I can write my graphic to a given filename
thanks in advance,
Ed.

Writing a Graphic to file
KD Hallman-MSFT
thanks for the reply but I think you got mixed up alittle.
I'm trying to go from a graphic to a bitmap
The solution you posted would go from a bitmap to an image.
thanks anyway,
Ed.
Arjan1982
How can I put a Graphic in a Bitmap
Thanks
Imran Aziz
1) Create a Bitmap object of the appropriate size.
2) Create your Graphics object from the bitmap, using the Graphics.FromImage() method.
3) Paint onto the Graphics object.
4) The Bitmap will now contain whatever drawing you did with the Graphics object.
5) Now you can save the Bitmap and specify a file name.
Hope this helps.
Steven Galione
Qube