#[non_exhaustive]pub enum Correction {
BrightnessContrast {
brightness: i32,
contrast: i32,
},
Levels(Vec<[f64; 5]>),
ToneCurve(Vec<Vec<(f64, f64)>>),
HueSaturationValue {
hue: i32,
saturation: i32,
value: i32,
},
ColorBalance {
preserve_luminosity: bool,
shadows: [i32; 3],
midtones: [i32; 3],
highlights: [i32; 3],
},
Invert,
Posterize(i32),
Threshold(i32),
GradientMap(Ramp),
}Expand description
The settings of a correction layer, by type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BrightnessContrast
明るさ・コントラスト (type 1).
Levels(Vec<[f64; 5]>)
レベル補正 (type 2). Per slot: input black, gamma point, input white, output black, output white (0..1).
ToneCurve(Vec<Vec<(f64, f64)>>)
トーンカーブ (type 3). Per slot: control points (0..1).
HueSaturationValue
色相・彩度・明度 (type 4).
ColorBalance
カラーバランス (type 5).
Fields
Invert
階調の反転 (type 6).
Posterize(i32)
ポスタリゼーション (type 7): the number of levels.
Threshold(i32)
2値化 (type 8): the threshold.
GradientMap(Ramp)
グラデーションマップ (type 9).
Implementations§
Trait Implementations§
Source§impl Clone for Correction
impl Clone for Correction
Source§impl Debug for Correction
impl Debug for Correction
Source§impl PartialEq for Correction
impl PartialEq for Correction
impl StructuralPartialEq for Correction
Auto Trait Implementations§
impl Freeze for Correction
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnsafeUnpin for Correction
impl UnwindSafe for Correction
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