Struct libvips::ops::TonelutOptions
source · pub struct TonelutOptions {
pub in_max: i32,
pub out_max: i32,
pub lb: f64,
pub lw: f64,
pub ps: f64,
pub pm: f64,
pub ph: f64,
pub s: f64,
pub m: f64,
pub h: f64,
}
Expand description
Options for tonelut operation
Fields§
§in_max: i32
in_max: i32
-> Size of LUT to build
min: 1, max: 65535, default: 32767
out_max: i32
out_max: i32
-> Maximum value in output LUT
min: 1, max: 65535, default: 32767
lb: f64
lb: f64
-> Lowest value in output
min: 0, max: 100, default: 0
lw: f64
lw: f64
-> Highest value in output
min: 0, max: 100, default: 100
ps: f64
ps: f64
-> Position of shadow
min: 0, max: 1, default: 0.2
pm: f64
pm: f64
-> Position of mid-tones
min: 0, max: 1, default: 0.5
ph: f64
ph: f64
-> Position of highlights
min: 0, max: 1, default: 0.8
s: f64
s: f64
-> Adjust shadows by this much
min: -30, max: 30, default: 0
m: f64
m: f64
-> Adjust mid-tones by this much
min: -30, max: 30, default: 0
h: f64
h: f64
-> Adjust highlights by this much
min: -30, max: 30, default: 0
Trait Implementations§
source§impl Clone for TonelutOptions
impl Clone for TonelutOptions
source§fn clone(&self) -> TonelutOptions
fn clone(&self) -> TonelutOptions
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 more