music7611 Posted March 6, 2004 Posted March 6, 2004 Does anyone know if it's 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# Quote
Menge Posted March 6, 2004 Posted March 6, 2004 hmmmm Bitmap b = new Bitmap(Width, Height); is that what you want? Quote Menge
music7611 Posted March 6, 2004 Author Posted March 6, 2004 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? Quote
Administrators PlausiblyDamp Posted March 6, 2004 Administrators Posted March 6, 2004 Thanks a lot! I hate to be so picky' date=' 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?[/quote'] something like the following should work. Bitmap b = new Bitmap(Width, Height); Graphics g = Graphics.FromImage(b); //can use g to draw on bitmap Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
music7611 Posted March 6, 2004 Author Posted March 6, 2004 Thanks A Lot Thanks A Lot! Now I can sleep well tonight. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.