Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
BytesPerLine Property
See Also 
Leadtools Namespace > RasterPaintDibInfo Class : BytesPerLine Property



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

Syntax

Visual Basic (Declaration)  
<CLSCompliantAttribute(False)>
Public Property BytesPerLine As UInteger
Visual Basic (Usage) Copy Code
Dim instance As RasterPaintDibInfo
Dim value As UInteger
 
instance.BytesPerLine = value
 
value = instance.BytesPerLine
C#  
[CLSCompliantAttribute(false)]
public uint BytesPerLine {get; set;}
C++/CLI  
[CLSCompliantAttribute(false)]
public:
property uint BytesPerLine {
   uint get();
   void set (uint value);
}

Return Value

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

Example

For an example, refer to RasterPaintDibInfo.

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 migh want no 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.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also