Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top