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




Gets the number of bytes per scanline for the image data of this RasterImage.

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;}
Managed Extensions for C++ 
public: __property int get_BytesPerLine();
C++/CLI 
public:
property int BytesPerLine {
   int get();
}

Return Value

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

Example

For an example, refer to GetRow

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 and SetRow methods.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also