boost::gil::read_and_convert_image

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

Synopsis

template<
    typename String,
    typename Image,
    typename ColorConverter,
    typename FormatTag>
void
read_and_convert_image(
    String const& file_name,
    Image& img,
    ColorConverter const& cc,
    FormatTag const& tag)
requires mp11::mp_and
        <
            is_format_tag<FormatTag>,
            detail::is_supported_path_spec<String>
        >::value;

Parameters

Name

Description

file_name

File name. Must satisfy is_supported_path_spec metafunction.

img

The image in which the data is read into.

cc

Color converter function object.

tag

Defines the image format. Must satisfy is_format_tag metafunction.

Created with MrDocs