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

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

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

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

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

bitdepth: i32

bitdepth: i32 -> Write as a 1, 2, 4 or 8 bit image min: 0, max: 8, default: 0

strip: bool

strip: bool -> Strip all metadata from image default: false

background: Vec<f64>

background: Vec<f64> -> Background value

page_height: i32

page_height: i32 -> Set page height for multipage save min: 0, max: 10000000, default: 0

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.