←Select platform

ConvertDirect(ConversionColorFormat,ConversionColorFormat,IntPtr,long,IntPtr,long,int,int,int,int) Method

Summary
Converts image data in a buffer from one color conversion model to another directly using built in algorithms.
Syntax
C#
C++
public static void ConvertDirect( 
   ConversionColorFormat srcFormat, 
   ConversionColorFormat destFormat, 
   IntPtr srcBuffer, 
   long srcBufferOffset, 
   IntPtr destBuffer, 
   long destBufferOffset, 
   int width, 
   int height, 
   int inAlign, 
   int outAlign 
) 
vb[VB Syntax] 
  
Public Overloads Shared Sub ConvertDirect( _ 
   ByVal _srcFormat_ As ConversionColorFormat, _ 
   ByVal _destFormat_ As ConversionColorFormat, _ 
   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 _ 
) 
public: 
static void ConvertDirect(  
   ConversionColorFormat srcFormat, 
   ConversionColorFormat destFormat, 
   IntPtr srcBuffer, 
   int64 srcBufferOffset, 
   IntPtr destBuffer, 
   int64 destBufferOffset, 
   int width, 
   int height, 
   int inAlign, 
   int outAlign 
)  

Parameters

srcFormat
Format of the input data.

destFormat
Format of the output data.

srcBuffer
A pointer to the input buffer.

srcBufferOffset
Offset to the first byte of the  srcBuffer data buffer.

destBuffer
A pointer to the 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.

Remarks

There is no need to call Start and Stop methods to initialize or stop the conversion engine.

Converting from any color space to YCCK color space is currently not supported.

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

To convert to the Yp41 type the input buffer length must be multiple of 8

Example

For an example, refer to ConvertDirect(ConversionColorFormat,ConversionColorFormat,Byte[],Int32,Byte[],Int32,Int32,Int32,Int32,Int32).

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ColorConversion Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.