LEADTOOLS Color Conversion (Leadtools.ColorConversion assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Convert(IntPtr,Int64,IntPtr,Int64,Int32,Int32,Int32,Int32) Method
See Also 
Leadtools.ColorConversion Namespace > RasterColorConverterEngine Class > Convert Method : Convert(IntPtr,Int64,IntPtr,Int64,Int32,Int32,Int32,Int32) Method



srcBuffer
A pointer to a buffer containing the input data.
srcBufferOffset
Offset to the first byte of the srcBuffer data buffer.
destBuffer
A pointer to a buffer that will hold the converted data.
destBufferOffset
Offset to the first byte of the destBuffer data buffer.
width
Width of pixels to be processed.
height
Height of pixels to be processed.
inAlign
Each scanline in the input buffer is a multiple of inAlign bytes.
outAlign
Each scan line in the output buffer is a multiple of outAlign bytes.
srcBuffer
A pointer to a buffer containing the input data.
srcBufferOffset
Offset to the first byte of the srcBuffer data buffer.
destBuffer
A pointer to a buffer that will hold the converted data.
destBufferOffset
Offset to the first byte of the destBuffer data buffer.
width
Width of pixels to be processed.
height
Height of pixels to be processed.
inAlign
Each scanline in the input buffer is a multiple of inAlign bytes.
outAlign
Each scan line in the output buffer is a multiple of outAlign bytes.
Converts image data in a buffer from one color conversion model to another.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Convert( _
   ByVal srcBuffer As IntPtr, _
   ByVal srcBufferOffset As Long, _
   ByVal destBuffer As IntPtr, _
   ByVal destBufferOffset As Long, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal inAlign As Integer, _
   ByVal outAlign As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterColorConverterEngine
Dim srcBuffer As IntPtr
Dim srcBufferOffset As Long
Dim destBuffer As IntPtr
Dim destBufferOffset As Long
Dim width As Integer
Dim height As Integer
Dim inAlign As Integer
Dim outAlign As Integer
 
instance.Convert(srcBuffer, srcBufferOffset, destBuffer, destBufferOffset, width, height, inAlign, outAlign)
C# 
public void Convert( 
   IntPtr srcBuffer,
   long srcBufferOffset,
   IntPtr destBuffer,
   long destBufferOffset,
   int width,
   int height,
   int inAlign,
   int outAlign
)
C++/CLI 
public:
void Convert( 
   IntPtr srcBuffer,
   int64 srcBufferOffset,
   IntPtr destBuffer,
   int64 destBufferOffset,
   int width,
   int height,
   int inAlign,
   int outAlign
) 

Parameters

srcBuffer
A pointer to a buffer containing the input data.
srcBufferOffset
Offset to the first byte of the srcBuffer data buffer.
destBuffer
A pointer to a buffer that will hold the converted data.
destBufferOffset
Offset to the first byte of the destBuffer data buffer.
width
Width of pixels to be processed.
height
Height of pixels to be processed.
inAlign
Each scanline in the input buffer is a multiple of inAlign bytes.
outAlign
Each scan line in the output buffer is a multiple of outAlign bytes.

Example

For an example, refer to RasterColorConverterEngine.Startup.

For more information about Alignment Parameters, refer to Alignment Parameters.

Remarks

Conversion is done by setting the active method value specified in ActiveMethod property. To change the active method, use RasterColorConverterEngine.SetParameters method.

To convert to the Yp41 type the input image width must be multiple of 8

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