Gets the expected stride (number of bytes per line).
[CLSCompliantAttribute(false)]
public uint BytesPerLine { get; set; }
<CLSCompliantAttribute(False)>
Public Property BytesPerLine As UInteger
[CLSCompliantAttribute(false)]
public:
property uint BytesPerLine {
uint get();
void set ( uint );
}
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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET