- 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.
Visual Basic (Declaration) | |
---|---|
Overloads Public 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 _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As RasterColorConverterEngine Dim srcBuffer As IntPtr Dim srcBufferOffset As Long Dim image As RasterImage Dim width As Integer Dim height As Integer Dim inAlign As Integer Dim outAlign As Integer instance.ConvertToImage(srcBuffer, srcBufferOffset, image, width, height, inAlign, outAlign) |
C# | |
---|---|
public void ConvertToImage( IntPtr srcBuffer, long srcBufferOffset, RasterImage image, int width, int height, int inAlign, int outAlign ) |
C++/CLI | |
---|---|
public: void ConvertToImage( IntPtr srcBuffer, int64 srcBufferOffset, RasterImage^ image, int width, int height, int inAlign, int outAlign ) |
Parameters
- 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.
For an example, refer to ConversionWhitePoint.WhitePoint.
The active conversion method is specified in the ConversionParameters object when calling the RasterColorConverterEngine.Start method. To change the active method, use the RasterColorConverterEngine.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
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
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)