LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
BytesPerLine Property
See Also 



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);
}

Property 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: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also