[][src]Struct libvips::ops::PngsaveOptions

pub struct PngsaveOptions {
    pub compression: i32,
    pub interlace: bool,
    pub page_height: i32,
    pub profile: String,
    pub filter: ForeignPngFilter,
    pub palette: bool,
    pub colours: i32,
    pub q: i32,
    pub dither: f64,
    pub strip: bool,
    pub background: Vec<f64>,
}

Options for pngsave 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 PngsaveOptions[src]

impl Debug for PngsaveOptions[src]

impl Default for PngsaveOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.