IColorConverter
public interface IColorConverter
The color converter.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
sourceFormat | PixelDataFormat | The source format. |
data | byte[] | The source data. |
offset | int | The offset in bytes where data copying should begin. |
bitStart | int | The bit start. Note this value is not byte aligned value instead this is actual bit where copying should begin. |
samplesCount | int | The samples count. |
linesCount | int | The lines count. |
destFormat | PixelDataFormat | The destination format. |
outputData | byte[] | The output data. |
outputOffset | int | The output offset where data copying should start. |
Returns: int - The converted bytes count.