←Select platform

BytesPerLine Property

Summary

Gets the expected stride (number of bytes per line).

Syntax

C#
VB
C++
[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 ); 
} 

Property Value

This is usually the number of bytes rounded up to a multiple of 4 bytes.

Remarks

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.

Example

For an example, refer to RasterPaintDibInfo.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly