Packages

 

com.aspose.imaging

Interfaces

Classes

com.aspose.imaging

Interface IColorConverter



  • public interface IColorConverter

    The color converter.

    • Method Detail

      • convert

        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:
        sourceFormat - The source format.
        data - The source data.
        offset - The offset in bytes where data copying should begin.
        bitStart - The bit start. Note this value is not byte aligned value instead this is actual bit where copying should begin.
        samplesCount - The samples count.
        linesCount - The lines count.
        destFormat - The destination format.
        outputData - The output data.
        outputOffset - The output offset where data copying should start.
        Returns:
        The converted bytes count.