ImageSource to System.Drawing.Image C#

2.1k views Asked by At

In a C# application I have, I need to add an Imagesource to an existing Bitmap image.

As far as I can see I have to use

Graphics g = Graphics.FromImage(myBitmap);
g.DrawImage();

I get that for g.DrawImage() I have to convert my Imagesource to System.Drawing.Image, my question is how do I do this?

1

There are 1 answers

0
Damp On

You don't need to convert your bitmap to a Graphics. Simply do: Graphics.DrawImage(myBitmap, myPoint); Where myPoint is the coordinate to draw the image at.