폼에 이미지 깔기

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("Good~!");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Bitmap bmp1 = new Bitmap(@"C:\Users\sgi320\Desktop\lena.bmp");

            Graphics g = this.CreateGraphics();
            g.DrawImage(bmp1, 5, 5, bmp1.Width, bmp1.Height);

            g.Dispose();
            bmp1.Dispose();
        }
    }
}

댓글

댓글 쓰기

이 블로그의 인기 게시물

파이썬으로 Homomorphic Filtering 하기

파이썬으로 2D FFT/iFFT 하기: numpy 버전