[問題] RGB轉YCBCR問題謝謝

看板C_Sharp作者時間18年前 (2007/10/23 22:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #177Wgmwk (C_Sharp)