private void button3_Click(object sender, EventArgs e)
{
if (pictureBox1.Image != null)
{
Bitmap rgbcolorbmp = new Bitmap(pictureBox1.Image);
int H = rgbcolorbmp.Height;
int W = rgbcolorbmp.Width;
Bitmap rgbcolorbmp_1 = new Bitmap(H, W);
for (int Y1 = 0; Y1 < H; Y1++)
{
for (int X1 = 0; X1 < W; X1++)
{
Color clr =rgbcolorbmp.GetPixel(x,y);
這邊接下來不會寫?謝謝
}
this.pictureBox2.Image = rgbcolorbmp_1;
}
}
我是想把pictureBox1匯入的image轉成YCbCr後貼到pictureBox2後秀出來。
還有一個問題,是將pictureBox1匯入的image按button後轉到pictureBox3秀出來。
private void button2_Click(object sender, EventArgs e)
{
this.pictureBox1.Image = this.pictureBox3.Image;
this.pictureBox3.Show();
}
小弟不才,還是初學者,謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.221.84.73