boost::gil::read_and_convert_view

Reads and color‐converts an image view. No memory is allocated.

Synopsis

template<
    typename String,
    typename View,
    typename FormatTag>
void
read_and_convert_view(
    String const& file_name,
    View const& view,
    image_read_settings<FormatTag> const& settings)
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.

view

The image view in which the data is read into.

settings

Specifies read settings depending on the image format.

Created with MrDocs