pub struct PngsaveOptions {
pub compression: i32,
pub interlace: bool,
pub filter: ForeignPngFilter,
pub palette: bool,
pub q: i32,
pub dither: f64,
pub bitdepth: i32,
pub effort: i32,
pub keep: ForeignKeep,
pub background: Vec<f64>,
pub page_height: i32,
pub profile: String,
}Expand description
Options for pngsave operation
Fields§
§compression: i32compression: i32 -> Compression factor
min: 0, max: 9, default: 6
interlace: boolinterlace: bool -> Interlace image
default: false
filter: ForeignPngFilterfilter: ForeignPngFilter -> libpng row filter flag(s)
None -> VIPS_FOREIGN_PNG_FILTER_NONE = 8 [DEFAULT]
Sub -> VIPS_FOREIGN_PNG_FILTER_SUB = 16
Up -> VIPS_FOREIGN_PNG_FILTER_UP = 32
Avg -> VIPS_FOREIGN_PNG_FILTER_AVG = 64
Paeth -> VIPS_FOREIGN_PNG_FILTER_PAETH = 128
All -> VIPS_FOREIGN_PNG_FILTER_ALL = 248
palette: boolpalette: bool -> Quantise to 8bpp palette
default: false
q: i32q: i32 -> Quantisation quality
min: 0, max: 100, default: 100
dither: f64dither: f64 -> Amount of dithering
min: 0, max: 1, default: 1
bitdepth: i32bitdepth: i32 -> Write as a 1, 2, 4, 8 or 16 bit image
min: 1, max: 16, default: 8
effort: i32effort: i32 -> Quantisation CPU effort
min: 1, max: 10, default: 7
keep: ForeignKeepkeep: ForeignKeep -> Which metadata to retain
None -> VIPS_FOREIGN_KEEP_NONE = 0
Exif -> VIPS_FOREIGN_KEEP_EXIF = 1
Xmp -> VIPS_FOREIGN_KEEP_XMP = 2
Iptc -> VIPS_FOREIGN_KEEP_IPTC = 4
Icc -> VIPS_FOREIGN_KEEP_ICC = 8
Other -> VIPS_FOREIGN_KEEP_OTHER = 16
All -> VIPS_FOREIGN_KEEP_ALL = 31 [DEFAULT]
background: Vec<f64>background: Vec<f64> -> Background value
page_height: i32page_height: i32 -> Set page height for multipage save
min: 0, max: 100000000, default: 0
profile: Stringprofile: String -> Filename of ICC profile to embed
Trait Implementations§
Source§impl Clone for PngsaveOptions
impl Clone for PngsaveOptions
Source§fn clone(&self) -> PngsaveOptions
fn clone(&self) -> PngsaveOptions
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PngsaveOptions
impl Debug for PngsaveOptions
Auto Trait Implementations§
impl Freeze for PngsaveOptions
impl RefUnwindSafe for PngsaveOptions
impl Send for PngsaveOptions
impl Sync for PngsaveOptions
impl Unpin for PngsaveOptions
impl UnwindSafe for PngsaveOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)