문제

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.

도움이 되었습니까?

해결책

BitmapSource is a base class as well and, if you're looking to write pixel data on the fly you're looking for the WritableBitamp subclass.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top