png++  0.2.9
Public Member Functions | Protected Attributes | List of all members
png::image_info Class Reference

Holds information about PNG image. More...

#include <image_info.hpp>

Inheritance diagram for png::image_info:
png::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...
 
uint_32 get_width () const
 
void set_width (uint_32 width)
 
uint_32 get_height () const
 
void set_height (uint_32 height)
 
color_type get_color_type () const
 
void set_color_type (color_type color_space)
 
int get_bit_depth () const
 
void set_bit_depth (int 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. More...
 
tRNS const & get_tRNS () const
 
tRNSget_tRNS ()
 
void set_tRNS (tRNS const &trns)
 
double get_gamma () const
 
void set_gamma (double gamma)
 

Protected Attributes

uint_32 m_width
 
uint_32 m_height
 
int 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
 
tRNS m_tRNS
 
double m_gamma
 

Detailed Description

Holds information about PNG image.

See also
image, generator, consumer

Constructor & Destructor Documentation

◆ image_info()

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

◆ get_width()

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

References m_width.

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

◆ set_width()

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

◆ get_height()

uint_32 png::image_info::get_height ( ) const
inline

◆ set_height()

void png::image_info::set_height ( uint_32  height)
inline

◆ get_color_type()

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

References m_color_type.

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

◆ set_color_type()

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

◆ get_bit_depth()

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

References m_bit_depth.

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

◆ set_bit_depth()

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

◆ get_interlace_type()

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

◆ set_interlace_type()

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

◆ get_compression_type()

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

◆ set_compression_type()

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

◆ get_filter_type()

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

◆ set_filter_type()

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

◆ get_palette() [1/2]

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

◆ get_palette() [2/2]

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

References m_palette.

◆ set_palette()

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

◆ drop_palette()

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().

◆ get_tRNS() [1/2]

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

◆ get_tRNS() [2/2]

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

References m_tRNS.

◆ set_tRNS()

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

◆ get_gamma()

double png::image_info::get_gamma ( ) const
inline

◆ set_gamma()

void png::image_info::set_gamma ( double  gamma)
inline

Member Data Documentation

◆ m_width

uint_32 png::image_info::m_width
protected

◆ m_height

uint_32 png::image_info::m_height
protected

◆ m_bit_depth

int png::image_info::m_bit_depth
protected

◆ m_color_type

color_type png::image_info::m_color_type
protected

◆ m_interlace_type

interlace_type png::image_info::m_interlace_type
protected

◆ m_compression_type

compression_type png::image_info::m_compression_type
protected

◆ m_filter_type

filter_type png::image_info::m_filter_type
protected

◆ m_palette

palette png::image_info::m_palette
protected

◆ m_tRNS

tRNS png::image_info::m_tRNS
protected

◆ m_gamma

double png::image_info::m_gamma
protected

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