픽쳐박스에 이미지 로드- winforms
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;
using AForge;
using AForge.Imaging;
using AForge.Math;
namespace winForm1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
// load image
Bitmap image = AForge.Imaging.Image.FromFile(@"C:\Users\user\Pictures\rose.jpg");
pictureBox1.Image = image;
MessageBox.Show("Good~!");
}
}
}
댓글
댓글 쓰기