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.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document