Answer the question
In order to leave comments, you need to log in
C# System.Graphics How to stretch an image?
Hello. I am writing an application in C# using WinForms. To render images I use the following code
e.Graphics.DrawImage(MatheMage.Properties.Resources.ChooseMenu, 0, 300);
private void GameForm_Load(object sender, EventArgs e)
{
this.TopMost = true;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
}
Answer the question
In order to leave comments, you need to log in
docks
use an overload that takes parameters with the original image size and target
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question