libpng++  v0.2.5-1
C++ library for PNG images
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
png::image_info Class Reference

Holds information about PNG image. More...

#include <image_info.hpp>

Inheritance diagram for png::image_info:
Collaboration diagram for png::image_info:

Public Member Functions

 image_info ()
 Constructs the image_info object with default values for color_type, interlace_type, compression_method and filter_type. More...
 
void drop_palette ()
 Removes all entries from the palette. More...
 
size_t get_bit_depth () const
 
color_type get_color_type () const
 
compression_type get_compression_type () const
 
filter_type get_filter_type () const
 
size_t get_height () const
 
interlace_type get_interlace_type () const
 
palette const & get_palette () const
 
paletteget_palette ()
 
tRNS const & get_tRNS () const
 
tRNSget_tRNS ()
 
size_t get_width () const
 
void set_bit_depth (size_t bit_depth)
 
void set_color_type (color_type color_space)
 
void set_compression_type (compression_type compression)
 
void set_filter_type (filter_type filter)
 
void set_height (size_t height)
 
void set_interlace_type (interlace_type interlace)
 
void set_palette (palette const &plte)
 
void set_tRNS (tRNS const &trns)
 
void set_width (size_t width)
 

Protected Attributes

size_t m_bit_depth
 
color_type m_color_type
 
compression_type m_compression_type
 
filter_type m_filter_type
 
uint_32 m_height
 
interlace_type m_interlace_type
 
palette m_palette
 
tRNS m_tRNS
 
uint_32 m_width
 

Detailed Description

Holds information about PNG image.

See Also
image, generator, consumer

Constructor & Destructor Documentation

png::image_info::image_info ( )
inline

Constructs the image_info object with default values for color_type, interlace_type, compression_method and filter_type.

Member Function Documentation

void png::image_info::drop_palette ( )
inline

Removes all entries from the palette.

References m_palette.

Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_palette().

Here is the caller graph for this function:

size_t png::image_info::get_bit_depth ( ) const
inline

References m_bit_depth.

Referenced by png::io_base::get_bit_depth().

Here is the caller graph for this function:

color_type png::image_info::get_color_type ( ) const
inline

References m_color_type.

Referenced by png::io_base::get_color_type().

Here is the caller graph for this function:

compression_type png::image_info::get_compression_type ( ) const
inline

References m_compression_type.

Referenced by png::io_base::get_compression_type(), and png::image< pixel >::get_compression_type().

Here is the caller graph for this function:

filter_type png::image_info::get_filter_type ( ) const
inline

References m_filter_type.

Referenced by png::io_base::get_filter_type(), and png::image< pixel >::get_filter_type().

Here is the caller graph for this function:

interlace_type png::image_info::get_interlace_type ( ) const
inline

References m_interlace_type.

Referenced by png::io_base::get_interlace_type(), and png::image< pixel >::get_interlace_type().

Here is the caller graph for this function:

palette const& png::image_info::get_palette ( ) const
inline

References m_palette.

Referenced by png::image< pixel >::get_palette().

Here is the caller graph for this function:

palette& png::image_info::get_palette ( )
inline

References m_palette.

tRNS const& png::image_info::get_tRNS ( ) const
inline

References m_tRNS.

Referenced by png::image< pixel >::get_tRNS().

Here is the caller graph for this function:

tRNS& png::image_info::get_tRNS ( )
inline

References m_tRNS.

size_t png::image_info::get_width ( ) const
inline

References m_width.

Referenced by png::io_base::get_width().

Here is the caller graph for this function:

void png::image_info::set_bit_depth ( size_t  bit_depth)
inline

References m_bit_depth.

Referenced by png::make_image_info(), and png::io_base::set_bit_depth().

Here is the caller graph for this function:

void png::image_info::set_color_type ( color_type  color_space)
inline

References m_color_type.

Referenced by png::make_image_info(), and png::io_base::set_color_type().

Here is the caller graph for this function:

void png::image_info::set_compression_type ( compression_type  compression)
inline

References m_compression_type.

Referenced by png::io_base::set_compression_type(), and png::image< pixel >::set_compression_type().

Here is the caller graph for this function:

void png::image_info::set_filter_type ( filter_type  filter)
inline

References m_filter_type.

Referenced by png::io_base::set_filter_type(), and png::image< pixel >::set_filter_type().

Here is the caller graph for this function:

void png::image_info::set_height ( size_t  height)
inline
void png::image_info::set_interlace_type ( interlace_type  interlace)
inline

References m_interlace_type.

Referenced by png::io_base::set_interlace_type(), and png::image< pixel >::set_interlace_type().

Here is the caller graph for this function:

void png::image_info::set_palette ( palette const &  plte)
inline

References m_palette.

Referenced by png::image< pixel >::set_palette().

Here is the caller graph for this function:

void png::image_info::set_tRNS ( tRNS const &  trns)
inline

References m_tRNS.

Referenced by png::image< pixel >::set_tRNS().

Here is the caller graph for this function:

void png::image_info::set_width ( size_t  width)
inline

Member Data Documentation

size_t png::image_info::m_bit_depth
protected
color_type png::image_info::m_color_type
protected
compression_type png::image_info::m_compression_type
protected
filter_type png::image_info::m_filter_type
protected
uint_32 png::image_info::m_height
protected
interlace_type png::image_info::m_interlace_type
protected
palette png::image_info::m_palette
protected
tRNS png::image_info::m_tRNS
protected
uint_32 png::image_info::m_width
protected

The documentation for this class was generated from the following file: