IColorConverter

public interface IColorConverter

The color converter.

Methods

MethodDescription
convert(PixelDataFormat sourceFormat, byte[] data, int offset, int bitStart, int samplesCount, int linesCount, PixelDataFormat destFormat, byte[] outputData, int outputOffset)Converts the passed data to the output format.

convert(PixelDataFormat sourceFormat, byte[] data, int offset, int bitStart, int samplesCount, int linesCount, PixelDataFormat destFormat, byte[] outputData, int outputOffset)

public abstract int convert(PixelDataFormat sourceFormat, byte[] data, int offset, int bitStart, int samplesCount, int linesCount, PixelDataFormat destFormat, byte[] outputData, int outputOffset)

Converts the passed data to the output format.

Parameters:

ParameterTypeDescription
sourceFormatPixelDataFormatThe source format.
databyte[]The source data.
offsetintThe offset in bytes where data copying should begin.
bitStartintThe bit start. Note this value is not byte aligned value instead this is actual bit where copying should begin.
samplesCountintThe samples count.
linesCountintThe lines count.
destFormatPixelDataFormatThe destination format.
outputDatabyte[]The output data.
outputOffsetintThe output offset where data copying should start.

Returns: int - The converted bytes count.