IColorConverter.Convert

IColorConverter.Convert method

Converts the passed data to the output format.

public int Convert(PixelDataFormat sourceFormat, byte[] data, int offset, int bitStart, 
    int samplesCount, int linesCount, PixelDataFormat destFormat, byte[] outputData, 
    int outputOffset)
ParameterTypeDescription
sourceFormatPixelDataFormatThe source format.
dataByte[]The source data.
offsetInt32The offset in bytes where data copying should begin.
bitStartInt32The bit start. Note this value is not byte aligned value instead this is actual bit where copying should begin.
samplesCountInt32The samples count.
linesCountInt32The lines count.
destFormatPixelDataFormatThe destination format.
outputDataByte[]The output data.
outputOffsetInt32The output offset where data copying should start.

Return Value

The converted bytes count.

See Also