Converts image data in a buffer from one color conversion model to RGB\BGR, and sets the output as RasterImage.
public void ConvertToImage(
IntPtr srcBuffer,
long srcBufferOffset,
RasterImage image,
int width,
int height,
int inAlign,
int outAlign
)
Public Overloads Sub ConvertToImage( _
ByVal srcBuffer As IntPtr, _
ByVal srcBufferOffset As Long, _
ByVal image As RasterImage, _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal inAlign As Integer, _
ByVal outAlign As Integer _
)
public:
void ConvertToImage(
IntPtr srcBuffer,
int64 srcBufferOffset,
RasterImage^ image,
int width,
int height,
int inAlign,
int outAlign
)
srcBuffer
A pointer to a buffer containing the input data.
srcBufferOffset
Offset to the first byte of the srcBuffer data buffer.
image
An RasterImage object that will hold the converted data.
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.
The active conversion method is specified in the ConversionParameters object when calling the Start method. To change the active method, use the SetParameters method. Only methods supported by the initialized converter should be specified. The conversion is done if the BGR or RGB Color Space was specified as the destination format when the Start method was called. For more information about Alignment Parameters, refer to Alignment Parameters. To convert to the Yp41 type the input image width must be multiple of 8
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
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.