png::image_info Class Reference

Holds information about PNG image. More...

#include <image_info.hpp>

Inheritance diagram for png::image_info:

png::info List of all members.

Public Member Functions

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

Protected Attributes

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

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

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

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

size_t png::image_info::get_height (  )  const [inline]

void png::image_info::set_height ( size_t  height  )  [inline]

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

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

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

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

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

void png::image_info::set_interlace_type ( interlace_type  interlace  )  [inline]

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

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

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

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

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

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

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

void png::image_info::drop_palette (  )  [inline]

Removes all entries from the palette.


Member Data Documentation

uint_32 png::image_info::m_width [protected]

uint_32 png::image_info::m_height [protected]

size_t png::image_info::m_bit_depth [protected]

color_type png::image_info::m_color_type [protected]

interlace_type png::image_info::m_interlace_type [protected]

compression_type png::image_info::m_compression_type [protected]

filter_type png::image_info::m_filter_type [protected]

palette png::image_info::m_palette [protected]


The documentation for this class was generated from the following file:
Generated on Sun Jul 8 19:33:01 2007 for png++ by  doxygen 1.5.2