Struct libvips::ops::PpmsaveTargetOptions
source · pub struct PpmsaveTargetOptions {
pub format: ForeignPpmFormat,
pub ascii: bool,
pub bitdepth: i32,
pub keep: ForeignKeep,
pub background: Vec<f64>,
pub page_height: i32,
pub profile: String,
}
Expand description
Options for ppmsave_target 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
Pnm
-> VIPS_FOREIGN_PPM_FORMAT_PNM = 4
Last
-> VIPS_FOREIGN_PPM_FORMAT_LAST = 5
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
keep: ForeignKeep
keep: 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: i32
page_height: i32
-> Set page height for multipage save
min: 0, max: 10000000, default: 0
profile: String
profile: String
-> Filename of ICC profile to embed
Trait Implementations§
source§impl Clone for PpmsaveTargetOptions
impl Clone for PpmsaveTargetOptions
source§fn clone(&self) -> PpmsaveTargetOptions
fn clone(&self) -> PpmsaveTargetOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more