简体   繁体   中英

Can Matrix class object hold Bitmap object of Image?

Can System.Drawing.Drawing2D.Matrix class object hold bitmap object of Image?

eg Graphics object can hold it.

No. From the docs:

Encapsulates a 3-by-3 affine matrix that represents a geometric transform.

I suppose you could store a 3x3pixel monochrome image in one, but it would be an abuse.

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.

Also according to documentation, as @spender pointed out there is a size limitation: only 3x3.

So general answer is: yes, you can , but there is no much sense of doing that, imo.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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