title: BitmapSource.CopyPixels -what's a good value for stride?
body: <p>I'm trying to get the pixel data from a WPF <code>BitmapSource</code> object. As I understand, this can be accomplished by calling its <code>CopyPixels</code> method. This method needs a stride parameter, which I don't know how to obtain. As far as I know, stride is value that's used when stepping in the array during reading or copying. What would be an appropriate stride value for any BitmapSource?</p>