Set PNG output options. Used with PNGFormat::save().
More...
#include <png_output_description.h>
|
| 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) |
|
Set PNG output options. Used with PNGFormat::save().
Create output description.
- Parameters
-
bit_depth | Number of bits per pixel. valid values are 1, 2, 4, 8, 16 - depending on color_type. |
color_type | Color mode of output image. |
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_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_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: