简体   繁体   English

Matrix类对象可以保存Image的Bitmap对象吗?

[英]Can Matrix class object hold Bitmap object of Image?

Can System.Drawing.Drawing2D.Matrix class object hold bitmap object of Image? System.Drawing.Drawing2D.Matrix类对象可以保存Image的位图对象吗?

eg Graphics object can hold it. 例如,Graphics对象可以保存它。

No. From the docs: 不,来自文档:

Encapsulates a 3-by-3 affine matrix that represents a geometric transform. 封装表示几何变换的3乘3仿射矩阵。

I suppose you could store a 3x3pixel monochrome image in one, but it would be an abuse. 我想你可以将一个3x3像素的单色图像存储在一个中,但这将是一种滥用。

It can , but you have to implement all. 可以 ,但你必须实现所有。 Matrix is just an information holder, what is inside of it, and how it managed by those ones who read it, is up to developer. Matrix只是一个信息持有者,其中的内容以及由其阅读的人如何管理,取决于开发人员。

Also according to documentation, as @spender pointed out there is a size limitation: only 3x3. 另外根据文档,@ spender指出有一个大小限制:只有3x3。

So general answer is: yes, you can , but there is no much sense of doing that, imo. 所以一般的答案是: 是的,你可以 ,但没有太多的意义,imo。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM