LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
BytesPerLine Property
See Also 
Leadtools Namespace > RasterImage Class : BytesPerLine Property



Gets the number of bytes per scanline for the image data of this RasterImage. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property BytesPerLine As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Integer
 
value = instance.BytesPerLine
C# 
public int BytesPerLine {get;}
C++/CLI 
public:
property int BytesPerLine {
   int get();
}

Property Value

Number of bytes per per scanline for the image data of this RasterImage.

Example

For an example, refer to GetRow(Int32,Byte[],Int32,Int32)

Remarks

The BytesPerLine value is rounded upward to the nearest multiple of four.

You can use this property to allocate the buffer size when manipulating the scanline data of a RasterImage directly through the GetRow(Int32,Byte[],Int32,Int32) and SetRow(Int32,Byte[],Int32,Int32) methods.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also