Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
Convert16(IntPtr,IntPtr,Int32,RasterColorSpaceFormat16,RasterColorSpaceFormat16) Method
See Also 
Leadtools Namespace > RasterColorSpace Class > Convert16 Method : Convert16(IntPtr,IntPtr,Int32,RasterColorSpaceFormat16,RasterColorSpaceFormat16) Method




inBuffer
An unmanaged pointer containing the source image data
outBuffer
An array of bytes to be filled with the converted image data
width
Image width, in pixels
inFormat
The format of the input data
outFormat
The desired format of the converted data
Converts 16-bit unmanaged image data from one color space to another.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub Convert16( _
   ByVal inBuffer As IntPtr, _
   ByVal outBuffer As IntPtr, _
   ByVal width As Integer, _
   ByVal inFormat As RasterColorSpaceFormat16, _
   ByVal outFormat As RasterColorSpaceFormat16 _
) 
Visual Basic (Usage)Copy Code
Dim inBuffer As IntPtr
Dim outBuffer As IntPtr
Dim width As Integer
Dim inFormat As RasterColorSpaceFormat16
Dim outFormat As RasterColorSpaceFormat16
 
RasterColorSpace.Convert16(inBuffer, outBuffer, width, inFormat, outFormat)
C# 
public static void Convert16( 
   IntPtr inBuffer,
   IntPtr outBuffer,
   int width,
   RasterColorSpaceFormat16 inFormat,
   RasterColorSpaceFormat16 outFormat
)
Managed Extensions for C++ 
public: static void Convert16( 
   IntPtr inBuffer,
   IntPtr outBuffer,
   int width,
   RasterColorSpaceFormat16 inFormat,
   RasterColorSpaceFormat16 outFormat
) 
C++/CLI 
public:
static void Convert16( 
   IntPtr inBuffer,
   IntPtr outBuffer,
   int width,
   RasterColorSpaceFormat16 inFormat,
   RasterColorSpaceFormat16 outFormat
) 

Parameters

inBuffer
An unmanaged pointer containing the source image data
outBuffer
An array of bytes to be filled with the converted image data
width
Image width, in pixels
inFormat
The format of the input data
outFormat
The desired format of the converted data

Example

For an example, refer to RasterColorSpace.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also