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;"
119 " recompile with PNG_tRNS_SUPPORTED");
152 #endif // PNGPP_INFO_HPP_INCLUDED