boost::gil::read_view

Reads an image view without conversion. No memory is allocated.

Synopsis

template<
    typename String,
    typename View,
    typename FormatTag>
void
read_view(
    String const& file_name,
    View const& view,
    FormatTag const& tag)
requires mp11::mp_and
        <
            typename detail::is_supported_path_spec<String>::type,
            typename is_format_tag<FormatTag>::type,
            typename is_read_supported
            <
                typename get_pixel_type<View>::type,
                FormatTag
            >::type
        >::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.

tag

Defines the image format. Must satisfy is_format_tag metafunction.

Created with MrDocs