31 #ifndef PNGPP_IMAGE_INFO_HPP_INCLUDED
32 #define PNGPP_IMAGE_INFO_HPP_INCLUDED
190 template<
typename pixel >
203 #endif // PNGPP_IMAGE_INFO_HPP_INCLUDED
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
color_type get_color_type() const
Definition: image_info.hpp:86
size_t get_bit_depth() const
Definition: image_info.hpp:96
size_t m_bit_depth
Definition: image_info.hpp:177
void set_color_type(color_type color_space)
Definition: image_info.hpp:91
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
compression_type get_compression_type() const
Definition: image_info.hpp:116
void set_palette(palette const &plte)
Definition: image_info.hpp:146
interlace_type get_interlace_type() const
Definition: image_info.hpp:106
filter_type m_filter_type
Definition: image_info.hpp:181
void set_filter_type(filter_type filter)
Definition: image_info.hpp:131
filter_type
Definition: types.hpp:91
void set_interlace_type(interlace_type interlace)
Definition: image_info.hpp:111
palette m_palette
Definition: image_info.hpp:182
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:141
uint_32 m_height
Definition: image_info.hpp:176
Holds information about PNG image.
Definition: image_info.hpp:47
color_type
Definition: types.hpp:46
palette const & get_palette() const
Definition: image_info.hpp:136
void set_bit_depth(size_t bit_depth)
Definition: image_info.hpp:101
void set_width(size_t width)
Definition: image_info.hpp:71
size_t get_height() const
Definition: image_info.hpp:76
color_type m_color_type
Definition: image_info.hpp:178
compression_type
Definition: types.hpp:85
uint_32 m_width
Definition: image_info.hpp:175
png_uint_32 uint_32
Definition: types.hpp:41
filter_type get_filter_type() const
Definition: image_info.hpp:126
void drop_palette()
Removes all entries from the palette.
Definition: image_info.hpp:154
void set_compression_type(compression_type compression)
Definition: image_info.hpp:121
tRNS & get_tRNS()
Definition: image_info.hpp:164
void set_height(size_t height)
Definition: image_info.hpp:81
Holds information about PNG image. Adapter class for IO image operations.
Definition: info.hpp:45
void set_tRNS(tRNS const &trns)
Definition: image_info.hpp:169
tRNS const & get_tRNS() const
Definition: image_info.hpp:159
tRNS m_tRNS
Definition: image_info.hpp:183
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:192
compression_type m_compression_type
Definition: image_info.hpp:180
interlace_type m_interlace_type
Definition: image_info.hpp:179
size_t get_width() const
Definition: image_info.hpp:66