c#将RGBA转换为图像/位图

时间:2014-04-02 17:58:19

标签: c# image-processing

我想开发检测最常用颜色的基本图像处理。 iv通过使用getpixel函数成功获取颜色,但它从RGBA返回Color,我想将rbga转换为图像,以便我可以将它放在Picturebox上。这怎么可能?

1 个答案:

答案 0 :(得分:0)

使用EmguCV:

var image im = new Image<Bgra, byte>();
this.pictureBox.Image = im.Bitmap;

完成:)