BitmapSource 与 DrawingImage
我知道 DrawingImage 有一个 Drawing 属性,我们可以设置任何用画笔和钢笔表示几何图形的 Drawing 子类。但是 BitmapSource 在哪里存储其像素,在 MSDN 文档中对 BitmapSouce 的描述是:
表示具有特定大小和分辨率的单个、恒定的像素集。
但我没有看到像素集的任何属性?顺便说一句,它们都派生自 ImageSource。
I know DrawingImage has a Drawing property to which we can set any of the Drawing sub-classes which represent a geometry with a brush and a pen. But where does BitmapSource store its pixels, in the MSDN documentation the description for BitmapSouce is:
Represents a single, constant set of pixels at a certain size and resolution.
But I don't see any property for the set of pixels? By the way they both derive from ImageSource.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BitmapSource
也是一个基类,如果您希望动态写入像素数据,则需要WritableBitamp
子类。BitmapSource
is a base class as well and, if you're looking to write pixel data on the fly you're looking for theWritableBitamp
subclass.