lilanw
asked on
Convert a Graphics object into Bitmap
Hi,
I need to create a image using the Graphics Object. That means, in my system i'm drawing few lines and i want load it into a picture box. What i thaught was to convert the Graphics object into a bitmap and include the bitmap in the picture box. but i'm not sure how to do this. Can please tell me how to do this?
Thanks
I need to create a image using the Graphics Object. That means, in my system i'm drawing few lines and i want load it into a picture box. What i thaught was to convert the Graphics object into a bitmap and include the bitmap in the picture box. but i'm not sure how to do this. Can please tell me how to do this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think the answer I gave is complete. Can it be graded?
For your case it would be the easiest to paint on the bitmap like RomanPetrenko showed you above and then Draw the bitmap on your form or display it in a picture box. (Then the picture box does the drawing for you.)