LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

BytesPerLine Property






Gets the expected stride (number of bytes per line).
Syntax
[CLSCompliantAttribute(false)]
public uint BytesPerLine {get; set;}
'Declaration
 
<CLSCompliantAttribute(False)>
Public Property BytesPerLine As UInteger
'Usage
 
Dim instance As RasterPaintDibInfo
Dim value As UInteger
 
instance.BytesPerLine = value
 
value = instance.BytesPerLine
[CLSCompliantAttribute(false)]
public uint BytesPerLine {get; set;}
CLSCompliantAttribute()
 get_BytesPerLine();
set_BytesPerLine(value);
[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.
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 might not want 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.

Example
For an example, refer to RasterPaintDibInfo.
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

RasterPaintDibInfo Class
RasterPaintDibInfo Members

 

 


Products | Support | Contact Us | Copyright Notices

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