You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use ToImageData() to save bitmaps to .avi file. Then I decode .avi with ToBitmap() and I get the error code "Value does not fall within the expected range". I concluded that the error is in the stride calculation. For me, for an image width of 1076 px, stride in bitmapData.Stride is calculated 3228 (3 * width) but should be 4304 px (4 * width).
The text was updated successfully, but these errors were encountered:
I'm using example code for WPF:
I use
ToImageData()
to save bitmaps to .avi file. Then I decode .avi withToBitmap()
and I get the error code "Value does not fall within the expected range". I concluded that the error is in the stride calculation. For me, for an image width of 1076 px, stride inbitmapData.Stride
is calculated 3228 (3 * width) but should be 4304 px (4 * width).The text was updated successfully, but these errors were encountered: