LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

BytesPerLine Property






Gets the number of bytes per scanline for the image data of this RasterImage. .NET support Silverlight support WinRT support
Syntax
public int BytesPerLine {get;}
'Declaration
 
Public ReadOnly Property BytesPerLine As Integer
'Usage
 
Dim instance As RasterImage
Dim value As Integer
 
value = instance.BytesPerLine
public int BytesPerLine {get;}
 get_BytesPerLine(); 
public:
property int BytesPerLine {
   int get();
}

Property Value

Number of bytes per per scanline for the image data of this RasterImage.
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.

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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImage Class
RasterImage Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.