[−][src]Struct libvips::ops::PngsaveBufferOptions
Options for pngsave_buffer operation
Fields
compression: i32
compression: i32
-> Compression factor
min: 0, max: 9, default: 6
interlace: bool
interlace: bool
-> Interlace image
default: false
page_height: i32
page_height: i32
-> Set page height for multipage save
min: 0, max: 10000000, default: 0
profile: String
profile: String
-> ICC profile to embed
filter: ForeignPngFilter
filter: ForeignPngFilter
-> libpng row filter flag(s)
None
-> VIPS_FOREIGN_PNG_FILTER_NONE = 8
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 [DEFAULT]
palette: bool
palette: bool
-> Quantise to 8bpp palette
default: false
colours: i32
colours: i32
-> Max number of palette colours
min: 2, max: 256, default: 256
q: i32
q: i32
-> Quantisation quality
min: 0, max: 100, default: 100
dither: f64
dither: f64
-> Amount of dithering
min: 0, max: 1, default: 1
strip: bool
strip: bool
-> Strip all metadata from image
default: false
background: Vec<f64>
background: Vec<f64>
-> Background value
Trait Implementations
impl Clone for PngsaveBufferOptions
[src]
fn clone(&self) -> PngsaveBufferOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PngsaveBufferOptions
[src]
impl Default for PngsaveBufferOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for PngsaveBufferOptions
impl Send for PngsaveBufferOptions
impl Sync for PngsaveBufferOptions
impl Unpin for PngsaveBufferOptions
impl UnwindSafe for PngsaveBufferOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,