Function libcacaoimage::Convert16To8BitColor

Function Documentation

Image libcacaoimage::Convert16To8BitColor(const Image &src)

Convert an Image with a 16-bit color depth to one with an 8-bit color depth.

Parameters:

src – The source 16-bit image

Throws:

std::runtime_error – If the source image is not 16-bit

Returns:

A new image with 8-bit color depth