积极答复者
Matrix 是什么?在C#中的作用是什么?

问题
答案
-
你好!
具体可以参考:
http://msdn.microsoft.com/zh-cn/library/system.windows.media.matrix.aspx
希望对你有帮助!
周雪峰- 已标记为答案 Jing0Moderator 2010年5月27日 3:53
-
涉及坐标变换,如果是 WinForm 参考,请 http://msdn.microsoft.com/zh-cn/library/system.drawing.drawing2d.matrix.aspx ,而 http://msdn.microsoft.com/zh-cn/library/system.windows.media.matrix.aspx 支持 WPF
问题要简单,错误须详细@错误/异常/堆栈信息+操作系统+软件版本+all the context of the issue Hope Helpful | http://www.leoworks.net- 已标记为答案 Jing0Moderator 2010年5月27日 3:54
-
你好 Matrix就是矩阵的意思,这是数学中的概念,在图像处理等很多方面都有很广的运用
同时在坐标变换几何学转换等方面也有广泛的运用,具体你可以参考上面MSDN的文档
与它有个类似的类 ColorMatrix,颜色矩阵可以实现图片的颜色、透明度更改等等,比如我这里的一个例子是使得突破半透明
float alpha = WatermarkAlpha / 255.0f;
float[][] colorMatrixElements = {
new float[] {1.0f, 0.0f, 0.0f, 0.0f, 0.0f},
new float[] {0.0f, 1.0f, 0.0f, 0.0f, 0.0f},
new float[] {0.0f, 0.0f, 1.0f, 0.0f, 0.0f},
new float[] {0.0f, 0.0f, 0.0f, alpha, 0.0f},
new float[] {0.0f, 0.0f, 0.0f, 0.0f, 1.0f}
};
ColorMatrix colorMatrix = new ColorMatrix(colorMatrixElements);
///设置颜色调整矩阵
attributes.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
http://hi.baidu.com/1987raymond/blog/item/652f76902dae6f85a977a481.html
I see you~http://hi.baidu.com/1987raymondMy Blog~~~- 已标记为答案 Jing0Moderator 2010年5月27日 3:54
全部回复
-
你好!
具体可以参考:
http://msdn.microsoft.com/zh-cn/library/system.windows.media.matrix.aspx
希望对你有帮助!
周雪峰- 已标记为答案 Jing0Moderator 2010年5月27日 3:53
-
涉及坐标变换,如果是 WinForm 参考,请 http://msdn.microsoft.com/zh-cn/library/system.drawing.drawing2d.matrix.aspx ,而 http://msdn.microsoft.com/zh-cn/library/system.windows.media.matrix.aspx 支持 WPF
问题要简单,错误须详细@错误/异常/堆栈信息+操作系统+软件版本+all the context of the issue Hope Helpful | http://www.leoworks.net- 已标记为答案 Jing0Moderator 2010年5月27日 3:54
-
你好 Matrix就是矩阵的意思,这是数学中的概念,在图像处理等很多方面都有很广的运用
同时在坐标变换几何学转换等方面也有广泛的运用,具体你可以参考上面MSDN的文档
与它有个类似的类 ColorMatrix,颜色矩阵可以实现图片的颜色、透明度更改等等,比如我这里的一个例子是使得突破半透明
float alpha = WatermarkAlpha / 255.0f;
float[][] colorMatrixElements = {
new float[] {1.0f, 0.0f, 0.0f, 0.0f, 0.0f},
new float[] {0.0f, 1.0f, 0.0f, 0.0f, 0.0f},
new float[] {0.0f, 0.0f, 1.0f, 0.0f, 0.0f},
new float[] {0.0f, 0.0f, 0.0f, alpha, 0.0f},
new float[] {0.0f, 0.0f, 0.0f, 0.0f, 1.0f}
};
ColorMatrix colorMatrix = new ColorMatrix(colorMatrixElements);
///设置颜色调整矩阵
attributes.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
http://hi.baidu.com/1987raymond/blog/item/652f76902dae6f85a977a481.html
I see you~http://hi.baidu.com/1987raymondMy Blog~~~- 已标记为答案 Jing0Moderator 2010年5月27日 3:54