31 #ifndef PNGPP_INFO_HPP_INCLUDED
32 #define PNGPP_INFO_HPP_INCLUDED
73 png_color* colors = 0;
78 #ifdef PNG_tRNS_SUPPORTED
85 if (png_get_tRNS(
m_png,
m_info, & values, & count, NULL)
88 throw error(
"png_get_tRNS() failed");
90 m_tRNS.assign(values, values + count);
112 #ifdef PNG_tRNS_SUPPORTED
114 const_cast< byte* >(&
m_tRNS[0]),
118 throw error(
"attempted to write tRNS chunk; recompile with PNG_tRNS_SUPPORTED");
151 #endif // PNGPP_INFO_HPP_INCLUDED
size_t m_bit_depth
Definition: image_info.hpp:177
png_struct * m_png
Definition: info_base.hpp:71
info(io_base &io, png_struct *png)
Definition: info.hpp:50
void write() const
Definition: info.hpp:96
Base class for PNG reader/writer classes.
Definition: io_base.hpp:62
Definition: types.hpp:104
void read()
Definition: info.hpp:55
Definition: types.hpp:103
filter_type m_filter_type
Definition: image_info.hpp:181
palette m_palette
Definition: image_info.hpp:182
void update()
Definition: info.hpp:125
void sync_ihdr(void) const
Definition: info.hpp:135
uint_32 m_height
Definition: image_info.hpp:176
Holds information about PNG image.
Definition: image_info.hpp:47
color_type m_color_type
Definition: image_info.hpp:178
uint_32 m_width
Definition: image_info.hpp:175
png_byte byte
Definition: types.hpp:39
Holds information about PNG image. Adapter class for IO image operations.
Definition: info.hpp:45
tRNS m_tRNS
Definition: image_info.hpp:183
Internal class to hold PNG info or end_info.
Definition: info_base.hpp:46
png_info * m_info
Definition: info_base.hpp:72
Exception class to represent runtime errors related to png++ operation.
Definition: error.hpp:47
compression_type m_compression_type
Definition: image_info.hpp:180
interlace_type m_interlace_type
Definition: image_info.hpp:179