C#

[C#]이미지 그리기 예제

선영아 사랑해 2016. 4. 5. 14:02

//폼의 특정 위치에 이미지 출력 예제입니다.

private void Form1_Paint(object sender, PaintEventArgs e)
{
            Image newImage = Image.FromFile("D:\\logo.png");

            int x = 100;
            int y = 200;
            int width = 450;
            int height = 150;

            e.Graphics.DrawImage(newImage, x, y, width, height);
}


'C#' 카테고리의 다른 글

[C#/PDA]DataGrid Row Count 구하기 예제  (0) 2016.04.08
[C#]마지막 일 구하기 예제  (0) 2016.04.06
[C#]이미지 회전 예제  (0) 2016.04.05
[C#]FileSystemWatcher 예제  (0) 2016.04.04
MSSQL Paging Query  (0) 2016.03.30