+ 1
How to add image on visual Studio code plz Help
I want add image on visual studio code but i dont do it this is a notpad okk
1 Réponse
+ 2
Namespace: System.Drawing
private void ImageExampleForm_Paint(object sender, PaintEventArgs e)
{
// Create image.
Image newImage = Image.FromFile("SampImag.jpg");
// Create Point for upper-left corner of image.
Point ulCorner = new Point(100, 100);
// Draw image to screen.
e.Graphics.DrawImage(newImage, ulCorner);
}
More informatio can be found under:
https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics.drawimage?view=netframework-4.8