31#ifndef PNGPP_IMAGE_INFO_HPP_INCLUDED
32#define PNGPP_IMAGE_INFO_HPP_INCLUDED
202 template<
typename pixel >
Holds information about PNG image.
Definition image_info.hpp:48
color_type m_color_type
Definition image_info.hpp:189
void set_interlace_type(interlace_type interlace)
Definition image_info.hpp:112
palette m_palette
Definition image_info.hpp:193
void drop_palette()
Removes all entries from the palette.
Definition image_info.hpp:155
void set_color_type(color_type color_space)
Definition image_info.hpp:92
tRNS const & get_tRNS() const
Definition image_info.hpp:160
void set_width(uint_32 width)
Definition image_info.hpp:72
uint_32 get_width() const
Definition image_info.hpp:67
palette const & get_palette() const
Definition image_info.hpp:137
interlace_type get_interlace_type() const
Definition image_info.hpp:107
color_type get_color_type() const
Definition image_info.hpp:87
uint_32 m_width
Definition image_info.hpp:186
double get_gamma() const
Definition image_info.hpp:175
int m_bit_depth
Definition image_info.hpp:188
int get_bit_depth() const
Definition image_info.hpp:97
void set_compression_type(compression_type compression)
Definition image_info.hpp:122
uint_32 get_height() const
Definition image_info.hpp:77
filter_type get_filter_type() const
Definition image_info.hpp:127
compression_type get_compression_type() const
Definition image_info.hpp:117
double m_gamma
Definition image_info.hpp:195
void set_filter_type(filter_type filter)
Definition image_info.hpp:132
void set_tRNS(tRNS const &trns)
Definition image_info.hpp:170
interlace_type m_interlace_type
Definition image_info.hpp:190
image_info()
Constructs the image_info object with default values for color_type, interlace_type,...
Definition image_info.hpp:55
filter_type m_filter_type
Definition image_info.hpp:192
compression_type m_compression_type
Definition image_info.hpp:191
palette & get_palette()
Definition image_info.hpp:142
void set_gamma(double gamma)
Definition image_info.hpp:180
void set_palette(palette const &plte)
Definition image_info.hpp:147
void set_bit_depth(int bit_depth)
Definition image_info.hpp:102
uint_32 m_height
Definition image_info.hpp:187
tRNS & get_tRNS()
Definition image_info.hpp:165
tRNS m_tRNS
Definition image_info.hpp:194
void set_height(uint_32 height)
Definition image_info.hpp:82
Holds information about PNG image. Adapter class for IO image operations.
Definition info.hpp:48
The PNG reader class template. This is the low-level reading interface–use image class or consumer cl...
Definition reader.hpp:67
image_info make_image_info()
Returns an image_info object with color_type and bit_depth fields setup appropriate for the pixel typ...
Definition image_info.hpp:204
interlace_type
Definition types.hpp:80
@ interlace_none
Definition types.hpp:81
color_type
Definition types.hpp:47
@ color_type_none
Definition types.hpp:48
std::vector< color > palette
The palette type. Currently implemented as std::vector of png::color.
Definition palette.hpp:44
compression_type
Definition types.hpp:86
@ compression_type_default
Definition types.hpp:88
filter_type
Definition types.hpp:92
@ filter_type_default
Definition types.hpp:95
std::vector< byte > tRNS
The palette transparency map type. Currently implemented as std::vector of png::byte.
Definition tRNS.hpp:44