Interface IColorConverter
The color converter.
public interface IColorConverter
Methods
Convert(PixelDataFormat, byte[], int, int, int, int, PixelDataFormat, byte[], int)
Converts the passed data to the output format.
int Convert(PixelDataFormat sourceFormat, byte[] data, int offset, int bitStart, int samplesCount, int linesCount, PixelDataFormat destFormat, byte[] outputData, int outputOffset)
Parameters
sourceFormat
PixelDataFormatThe source format.
data
byte[]The source data.
offset
intThe offset in bytes where data copying should begin.
bitStart
intThe bit start. Note this value is not byte aligned value instead this is actual bit where copying should begin.
samplesCount
intThe samples count.
linesCount
intThe lines count.
destFormat
PixelDataFormatThe destination format.
outputData
byte[]The output data.
outputOffset
intThe output offset where data copying should start.
Returns
- int
The converted bytes count.