Struct libvips_rs::ops::PpmsaveOptions
source · pub struct PpmsaveOptions {
pub format: ForeignPpmFormat,
pub ascii: bool,
pub bitdepth: i32,
pub strip: bool,
pub background: Vec<f64>,
pub page_height: i32,
}
Expand description
Options for ppmsave operation
Fields§
§format: ForeignPpmFormat
format: ForeignPpmFormat
-> Format to save in
Pbm
-> VIPS_FOREIGN_PPM_FORMAT_PBM = 0
Pgm
-> VIPS_FOREIGN_PPM_FORMAT_PGM = 1
Ppm
-> VIPS_FOREIGN_PPM_FORMAT_PPM = 2 [DEFAULT]
Pfm
-> VIPS_FOREIGN_PPM_FORMAT_PFM = 3
Last
-> VIPS_FOREIGN_PPM_FORMAT_LAST = 4
ascii: bool
ascii: bool
-> Save as ascii
default: false
bitdepth: i32
bitdepth: i32
-> Set to 1 to write as a 1 bit image
min: 0, max: 1, 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§
source§impl Clone for PpmsaveOptions
impl Clone for PpmsaveOptions
source§fn clone(&self) -> PpmsaveOptions
fn clone(&self) -> PpmsaveOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PpmsaveOptions
impl Debug for PpmsaveOptions
Auto Trait Implementations§
impl RefUnwindSafe for PpmsaveOptions
impl Send for PpmsaveOptions
impl Sync for PpmsaveOptions
impl Unpin for PpmsaveOptions
impl UnwindSafe for PpmsaveOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more