Go to the documentation of this file.
31 #ifndef PNGPP_IMAGE_INFO_HPP_INCLUDED
32 #define PNGPP_IMAGE_INFO_HPP_INCLUDED
202 template<
typename pixel >
215 #endif // PNGPP_IMAGE_INFO_HPP_INCLUDED
std::vector< byte > tRNS
The palette transparency map type. Currently implemented as std::vector of png::byte.
Definition: tRNS.hpp:44
compression_type get_compression_type() const
Definition: image_info.hpp:117
Holds information about PNG image. Adapter class for IO image operations.
Definition: info.hpp:45
interlace_type get_interlace_type() const
Definition: image_info.hpp:107
compression_type
Definition: types.hpp:85
void set_palette(palette const &plte)
Definition: image_info.hpp:147
interlace_type
Definition: types.hpp:79
Holds information about PNG image.
Definition: image_info.hpp:47
palette & get_palette()
Definition: image_info.hpp:142
tRNS m_tRNS
Definition: image_info.hpp:194
color_type
Definition: types.hpp:46
png_uint_32 uint_32
Definition: types.hpp:41
color_type get_color_type() const
Definition: image_info.hpp:87
void set_interlace_type(interlace_type interlace)
Definition: image_info.hpp:112
color_type m_color_type
Definition: image_info.hpp:189
filter_type m_filter_type
Definition: image_info.hpp:192
@ interlace_none
Definition: types.hpp:81
void set_width(uint_32 width)
Definition: image_info.hpp:72
void drop_palette()
Removes all entries from the palette.
Definition: image_info.hpp:155
void set_gamma(double gamma)
Definition: image_info.hpp:180
void set_bit_depth(int bit_depth)
Definition: image_info.hpp:102
palette const & get_palette() const
Definition: image_info.hpp:137
interlace_type m_interlace_type
Definition: image_info.hpp:190
filter_type get_filter_type() const
Definition: image_info.hpp:127
int get_bit_depth() const
Definition: image_info.hpp:97
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
void set_height(uint_32 height)
Definition: image_info.hpp:82
Pixel traits class template.
Definition: pixel_traits.hpp:48
@ color_type_none
Definition: types.hpp:48
void set_tRNS(tRNS const &trns)
Definition: image_info.hpp:170
void set_color_type(color_type color_space)
Definition: image_info.hpp:92
double get_gamma() const
Definition: image_info.hpp:175
@ compression_type_default
Definition: types.hpp:88
void set_compression_type(compression_type compression)
Definition: image_info.hpp:122
palette m_palette
Definition: image_info.hpp:193
int m_bit_depth
Definition: image_info.hpp:188
tRNS & get_tRNS()
Definition: image_info.hpp:165
void set_filter_type(filter_type filter)
Definition: image_info.hpp:132
filter_type
Definition: types.hpp:91
tRNS const & get_tRNS() const
Definition: image_info.hpp:160
uint_32 get_height() const
Definition: image_info.hpp:77
compression_type m_compression_type
Definition: image_info.hpp:191
@ filter_type_default
Definition: types.hpp:95
uint_32 m_width
Definition: image_info.hpp:186
uint_32 m_height
Definition: image_info.hpp:187
image_info()
Constructs the image_info object with default values for color_type, interlace_type,...
Definition: image_info.hpp:55
double m_gamma
Definition: image_info.hpp:195
uint_32 get_width() const
Definition: image_info.hpp:67
std::vector< color > palette
The palette type. Currently implemented as std::vector of png::color.
Definition: palette.hpp:44