i may use Graphics.DrawImage to draw an available Image on a Graphics. but i want to make an Image which is not available by drawing lines, rectangles, texts, etc. on a Graphics.
how is it possible in C#?
in C++, it's possible to create a bitmap which is compatible with the window DC and creating a compatible dc with the window DC called memory DC and selecting the bitmap in the memory dc. further graphical operations are done on the selected bitmap. then i have a CBitmap object which includes the made shape.
now in C# how can i do that?
the aim is to save a drawn shape to a file.