boost::gil::read_image_info

Returns the image format backend. Backend is format specific.

Synopsis

template<
    typename String,
    typename FormatTag>
get_reader_backend<String, FormatTag>::type
read_image_info(
    String const& file_name,
    FormatTag const&)
requires mp11::mp_and
        <
            is_format_tag<FormatTag>,
            detail::is_supported_path_spec<String>
        >::value;

Description

The unnamed FormatTag argument defines the image format and must satisfy the is_format_tag metafunction.

Return Value

image_read_info object dependent on the image format.

Parameters

Name

Description

file_name

File name. Must satisfy is_supported_path_spec metafunction.

Created with MrDocs