boost::gil::read_and_convert_image

Reads and color‐converts an image. Image memory is allocated.

Synopsis

template<
    typename Reader,
    typename Image>
void
read_and_convert_image(
    Reader& reader,
    Image& img)
requires mp11::mp_and
        <
            detail::is_reader<Reader>,
            is_format_tag<typename Reader::format_tag_t>
        >::value;

Parameters

Name

Description

reader

An image reader.

img

The image in which the data is read into.

settings

Specifies read settings depending on the image format.

cc

Color converter function object.

Created with MrDocs