←Select platform

Convert(byte[],int,byte[],int,int,int,int,int) Method

Summary
Converts image data in a buffer from one color conversion model to another.
Syntax
C#
C++
public void Convert( 
   byte[] srcBuffer, 
   int srcBufferOffset, 
   byte[] destBuffer, 
   int destBufferOffset, 
   int width, 
   int height, 
   int inAlign, 
   int outAlign 
) 
vb[VB Syntax] 
  
Public Overloads Sub Convert( _ 
   ByVal _srcBuffer_() As Byte, _ 
   ByVal _srcBufferOffset_ As Integer, _ 
   ByVal _destBuffer_() As Byte, _ 
   ByVal _destBufferOffset_ As Integer, _ 
   ByVal _width_ As Integer, _ 
   ByVal _height_ As Integer, _ 
   ByVal _inAlign_ As Integer, _ 
   ByVal _outAlign_ As Integer _ 
) 
public: 
void Convert(  
   array<byte>^ srcBuffer, 
   int srcBufferOffset, 
   array<byte>^ destBuffer, 
   int destBufferOffset, 
   int width, 
   int height, 
   int inAlign, 
   int outAlign 
)  

Parameters

srcBuffer
A byte array containing the input buffer.

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

destBuffer
A byte array 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

Conversion is done by setting the active method value specified in ActiveMethod property. To change the active method, use SetParameters method. To convert to the Yp41 type the input image width must be multiple of 8

Example

For an example, refer to Startup. For more information about Alignment Parameters, refer to Alignment Parameters.

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.