uicore::PNGOutputDescription Class Reference

Set PNG output options. Used with PNGFormat::save(). More...

#include <png_output_description.h>

Public Member Functions

 PNGOutputDescription (int bit_depth=8, PNGColorType color_type=png_color_type_rgb_alpha)
 Create output description. More...
 
void add_comment (const std::string &comment, std::string &keyword, const std::string &lang, const std::string &translated_keyword)
 
void add_palette (const PNGOutputDescriptionPalette &palette)
 
void add_unknown_chunk (const std::string &name, const DataBufferPtr &chunk_data, PNGUnknownChunkLocation location)
 
void set_background_color (const Color &background_color)
 
void set_chromacities (const Vec2f &white, const Vec2f &red, const Vec2f &green, const Vec2f &blue)
 
void set_chromacities_XYZ (const Vec3f &red, const Vec3f &green, const Vec3f &blue)
 
void set_filter_method (PNGFilterMethod filter)
 
void set_gamma (float gamma)
 
void set_icc_profile (const std::string &profile_name, const DataBufferPtr &profile_data)
 
void set_interlace_type (PNGInterlaceType type)
 
void set_key_color (const Color &color)
 
void set_modification_time (const DateTime &datetime)
 
void set_offset_from_screen_topleft (const Vec2i &offset, PNGOffsetUnitType offset_unit_type)
 
void set_physical_resolution (const Vec2i &resolution, PNGResolutionUnitType resolution_type)
 
void set_physical_scale (int scale_units, const Sized &pixel_size_in_scale_units)
 
void set_significant_bits (int num_bits)
 
void set_srgb_intent (PNGsRGBIntent intent)
 

Detailed Description

Set PNG output options. Used with PNGFormat::save().

Constructor & Destructor Documentation

uicore::PNGOutputDescription::PNGOutputDescription ( int  bit_depth = 8,
PNGColorType  color_type = png_color_type_rgb_alpha 
)

Create output description.

Parameters
bit_depthNumber of bits per pixel. valid values are 1, 2, 4, 8, 16 - depending on color_type.
color_typeColor mode of output image.

Member Function Documentation

void uicore::PNGOutputDescription::add_comment ( const std::string comment,
std::string keyword,
const std::string lang,
const std::string translated_keyword 
)
void uicore::PNGOutputDescription::add_palette ( const PNGOutputDescriptionPalette palette)
void uicore::PNGOutputDescription::add_unknown_chunk ( const std::string name,
const DataBufferPtr chunk_data,
PNGUnknownChunkLocation  location 
)
void uicore::PNGOutputDescription::set_background_color ( const Color background_color)
void uicore::PNGOutputDescription::set_chromacities ( const Vec2f white,
const Vec2f red,
const Vec2f green,
const Vec2f blue 
)
void uicore::PNGOutputDescription::set_chromacities_XYZ ( const Vec3f red,
const Vec3f green,
const Vec3f blue 
)
void uicore::PNGOutputDescription::set_filter_method ( PNGFilterMethod  filter)
void uicore::PNGOutputDescription::set_gamma ( float  gamma)
void uicore::PNGOutputDescription::set_icc_profile ( const std::string profile_name,
const DataBufferPtr profile_data 
)
void uicore::PNGOutputDescription::set_interlace_type ( PNGInterlaceType  type)
void uicore::PNGOutputDescription::set_key_color ( const Color color)
void uicore::PNGOutputDescription::set_modification_time ( const DateTime datetime)
void uicore::PNGOutputDescription::set_offset_from_screen_topleft ( const Vec2i offset,
PNGOffsetUnitType  offset_unit_type 
)
void uicore::PNGOutputDescription::set_physical_resolution ( const Vec2i resolution,
PNGResolutionUnitType  resolution_type 
)
void uicore::PNGOutputDescription::set_physical_scale ( int  scale_units,
const Sized pixel_size_in_scale_units 
)
void uicore::PNGOutputDescription::set_significant_bits ( int  num_bits)
void uicore::PNGOutputDescription::set_srgb_intent ( PNGsRGBIntent  intent)

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