using (Bitmap converImage = (Bitmap)deviceInfo.CameraRenderImage.Clone())
{
//颜色矩阵
float[][] matrixItems = {
new float[]{1,0,0,0,0},
new float[]{ 0,1,0,0,0},
new float[]{0,0,1,0,0},
new float[]{0,0,0,App.Config.RenderImage.ConverRegionImageRate,0},
new float[]{0,0,0,0,1}
};
ColorMatrix colorMatrix = new ColorMatrix(matrixItems);
ImageAttributes imageAtt = new ImageAttributes();
imageAtt.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);g.DrawImage(converImage, new Rectangle(0, 0, img.Width, img.Height), 0, 0, converImage.Width, converImage.Height, GraphicsUnit.Pixel, imageAtt);//
}