Gets the expected stride (number of bytes per line).
This is usually the number of bytes rounded up to a multiple of 4 bytes.
The GDI convention is the number of bytes per line is a multiple of 4 bytes and the extra padding data is unused. But it is possible some cards might not want padding so you can use this property to indicate that. You have to calculate this value from the width of the line that is passed as the second parameter to the RasterImagePaintCallbackFunction.GetDibInfoCallback callback.
For an example, refer to RasterPaintDibInfo.
![]() |
Products |
Support |
Feedback: BytesPerLine Property - Leadtools.Drawing |
Introduction |
Help Version 19.0.2017.3.21
|