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