there is a logical mistake here.
graphics is an object that belongs to an image object.
we may call graphics object as drawing and painting layer of an image.
if you only want to draw something and save/process it you should first create a new bitmap, then get it's graphics object and draw anything you want.
then when u save bitmap object you'll get your drawing.
one important point here is the background color of your drawing.
you can change this by drawing a filled rectangle on graphics object that you extracted from bitmap object with the brush which has the color that you want. this color may even be transparent.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.