Creating images on the fly

music7611

Active member
Joined
Jan 24, 2004
Messages
35
Does anyone know if its possible to create images by specifying the dimensions of the image. I am making a program that requires me to save images using Image.Save. I am using C#
 
Thanks

Thanks a lot! I hate to be so picky, but I need to draw on the bitmap. I know you can use Graphics.FromImage(image) to load the image to a graphics thing. Can you do something similair with a bitmap?
 
music7611 said:
Thanks a lot! I hate to be so picky, but I need to draw on the bitmap. I know you can use Graphics.FromImage(image) to load the image to a graphics thing. Can you do something similair with a bitmap?

something like the following should work.
C#:
Bitmap b = new Bitmap(Width, Height);
Graphics g = Graphics.FromImage(b);
//can use g to draw on bitmap
 
Back
Top