Converts data in the specified buffer to the specified bits per pixel and color order.
public static void Convert(
IBuffer buffer,
int bufferOffset,
int width,
int inBitsPerPixel,
int outBitsPerPixel,
Leadtools.RasterByteOrder inOrder,
Leadtools.RasterByteOrder outOrder,
Leadtools.RasterColor[] inPalette,
Leadtools.RasterColor[] outPalette,
int alpha
)
Public Overloads Shared Sub Convert( _
ByVal buffer As IBuffer, _
ByVal bufferOffset As Integer, _
ByVal width As Integer, _
ByVal inBitsPerPixel As Integer, _
ByVal outBitsPerPixel As Integer, _
ByVal inOrder As Leadtools.RasterByteOrder, _
ByVal outOrder As Leadtools.RasterByteOrder, _
ByVal inPalette() As Leadtools.RasterColor, _
ByVal outPalette() As Leadtools.RasterColor, _
ByVal alpha As Integer _
)
public static void Convert(
IBuffer buffer,
int bufferOffset,
int width,
int inBitsPerPixel,
int outBitsPerPixel,
Leadtools.RasterByteOrder inOrder,
Leadtools.RasterByteOrder outOrder,
Leadtools.RasterColor[] inPalette,
Leadtools.RasterColor[] outPalette,
int alpha
)
function Leadtools.RasterBufferConverter.Convert(IBuffer,Int32,Int32,Int32,Int32,RasterByteOrder,RasterByteOrder,RasterColor[],RasterColor[],Int32)(
buffer ,
bufferOffset ,
width ,
inBitsPerPixel ,
outBitsPerPixel ,
inOrder ,
outOrder ,
inPalette ,
outPalette ,
alpha
)
public:
static void Convert(
IBuffer^ buffer,
int bufferOffset,
int width,
int inBitsPerPixel,
int outBitsPerPixel,
Leadtools.RasterByteOrder inOrder,
Leadtools.RasterByteOrder outOrder,
Leadtools.array<RasterColor>^ inPalette,
Leadtools.array<RasterColor>^ outPalette,
int alpha
)
buffer
The input buffer.
bufferOffset
The zero-based offset into the buffer where conversion should start.
width
Width in pixels of the input image data.
inBitsPerPixel
BitsPerPixel of the input image data.
outBitsPerPixel
BitsPerPixel of the desired output image data.
inOrder
The input color order.
outOrder
The output color order.
inPalette
The palette or 8-bit LUT for the existing data, before conversion. If the input data is not palettized and not grayscale, use NULL.
outPalette
The palette for the converted data. If the data is converted to 16 or 24 bits per pixel color, use NULL for no palette.
alpha
The alpha value if the destination bits per pixel contains an alpha component
The conversion uses only one buffer, which must be large enough to hold the data before and after conversion.
Image data that is 8 bits per pixel or less must use a palette, and this method can use such data as input, output, or both. Therefore, you may need to specify the palette for the input, or for the output, or both.
If either inBitsPerPixel or outBitsPerPixel is 16, flags is used to determine whether the data should be treated as color or grayscale.
For more information, refer to Introduction to Image Processing With LEADTOOLS.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.