pub enum FilterVariant {
Show 64 variants
Average,
Blur,
BlurMore,
BoxBlur(RadiusFilter),
GaussianBlur(RadiusFilter),
MotionBlur {
angle: f64,
distance: UnitsValue,
},
RadialBlur {
amount: f64,
method: RadialBlurMethod,
quality: RadialBlurQuality,
},
ShapeBlur {
radius: UnitsValue,
custom_shape: NamedId,
},
SmartBlur {
radius: f64,
threshold: f64,
quality: LowMediumHigh,
mode: SmartBlurMode,
},
SurfaceBlur {
radius: UnitsValue,
threshold: f64,
},
Displace {
horizontal_scale: f64,
vertical_scale: f64,
displacement_map: DisplacementMap,
undefined_areas: WrapOrRepeat,
displacement_file: DisplacementFile,
},
Pinch {
amount: f64,
},
PolarCoordinates {
conversion: PolarConversion,
},
Ripple {
amount: f64,
size: SmallMediumLarge,
},
Shear {
shear_points: Vec<PointF>,
shear_start: f64,
shear_end: f64,
undefined_areas: WrapOrRepeat,
},
Spherize {
amount: f64,
mode: SpherizeMode,
},
Twirl {
angle: f64,
},
Wave {
number_of_generators: f64,
wave_type: WaveType,
wavelength: MinMax,
amplitude: MinMax,
scale: PointF,
random_seed: f64,
undefined_areas: WrapOrRepeat,
},
ZigZag {
amount: f64,
ridges: f64,
style: ZigZagStyle,
},
AddNoise {
amount: f64,
distribution: NoiseDistribution,
monochromatic: bool,
random_seed: f64,
},
Despeckle,
DustAndScratches {
radius: f64,
threshold: f64,
},
Median(RadiusFilter),
ReduceNoise {
preset: String,
remove_jpeg_artifact: bool,
reduce_color_noise: f64,
sharpen_details: f64,
channel_denoise: Vec<ChannelDenoise>,
},
ColorHalftone {
radius: f64,
angle1: f64,
angle2: f64,
angle3: f64,
angle4: f64,
},
Crystallize {
cell_size: f64,
random_seed: f64,
},
Facet,
Fragment,
Mezzotint {
mezzotint_type: MezzotintType,
random_seed: f64,
},
Mosaic {
cell_size: UnitsValue,
},
Pointillize {
cell_size: f64,
random_seed: f64,
},
Clouds {
random_seed: f64,
},
DifferenceClouds {
random_seed: f64,
},
Fibers {
variance: f64,
strength: f64,
random_seed: f64,
},
LensFlare {
brightness: f64,
position: PointF,
lens_type: LensType,
},
Sharpen,
SharpenEdges,
SharpenMore,
SmartSharpen {
amount: f64,
radius: UnitsValue,
threshold: f64,
angle: f64,
more_accurate: bool,
blur: SmartSharpenBlur,
preset: String,
shadow: SmartSharpenTone,
highlight: SmartSharpenTone,
},
UnsharpMask {
amount: f64,
radius: UnitsValue,
threshold: f64,
},
Diffuse {
mode: DiffuseMode,
random_seed: f64,
},
Emboss {
angle: f64,
height: f64,
amount: f64,
},
Extrude {
extrude_type: ExtrudeType,
size: f64,
depth: f64,
depth_mode: ExtrudeDepthMode,
random_seed: f64,
solid_front_faces: bool,
mask_incomplete_blocks: bool,
},
FindEdges,
Solarize,
Tiles {
number_of_tiles: f64,
maximum_offset: f64,
fill_empty_area_with: TilesFill,
random_seed: f64,
},
TraceContour {
level: f64,
edge: LowerUpper,
},
Wind {
method: WindMethod,
direction: LeftRight,
},
DeInterlace {
eliminate: DeInterlaceEliminate,
new_fields_by: DeInterlaceNewFields,
},
NtscColors,
Custom {
scale: f64,
offset: f64,
matrix: Vec<f64>,
},
HighPass(RadiusFilter),
Maximum(RadiusFilter),
Minimum(RadiusFilter),
Offset {
horizontal: f64,
vertical: f64,
undefined_areas: OffsetUndefinedAreas,
},
Puppet {
rigid_type: bool,
bounds: Vec<PointF>,
puppet_shape_list: Vec<PuppetShape>,
},
OilPaintPlugin {
name: String,
gpu: bool,
lighting: bool,
parameters: Vec<NamedValue>,
},
HsbHsl {
input_mode: RgbHsbHsl,
row_order: RgbHsbHsl,
},
OilPaint {
lighting_on: bool,
stylization: f64,
cleanliness: f64,
brush_scale: f64,
micro_brush: f64,
light_direction: f64,
specularity: f64,
},
Liquify {
liquify_mesh: Vec<u8>,
},
PerspectiveWarp {
quads: Vec<Vec<f64>>,
vertices: Vec<UnitsPoint>,
warped_vertices: Vec<UnitsPoint>,
},
Curves {
preset_kind: CurvesPresetKind,
adjustments: Option<Vec<CurvesFilterAdjustment>>,
},
Invert,
BrightnessContrast {
brightness: f64,
contrast: f64,
use_legacy: bool,
},
}Expand description
TS FilterVariant union. Each variant carries the TS type tag and its
filter payload (where present). The exact string tags are in doc-comments.
Variants§
Average
“average”
Blur
“blur”
BlurMore
“blur more”
BoxBlur(RadiusFilter)
“box blur”
GaussianBlur(RadiusFilter)
“gaussian blur”
MotionBlur
“motion blur”
RadialBlur
“radial blur”
ShapeBlur
“shape blur”
SmartBlur
“smart blur”
SurfaceBlur
“surface blur”
Displace
“displace”
Fields
displacement_map: DisplacementMapundefined_areas: WrapOrRepeatdisplacement_file: DisplacementFilePinch
“pinch”
PolarCoordinates
“polar coordinates”
Fields
conversion: PolarConversionRipple
“ripple”
Shear
“shear”
Spherize
“spherize”
Twirl
“twirl”
Wave
“wave”
Fields
undefined_areas: WrapOrRepeatZigZag
“zigzag”
AddNoise
“add noise”
Despeckle
“despeckle”
DustAndScratches
“dust and scratches”
Median(RadiusFilter)
“median”
ReduceNoise
“reduce noise”
Fields
channel_denoise: Vec<ChannelDenoise>ColorHalftone
“color halftone”
Crystallize
“crystallize”
Facet
“facet”
Fragment
“fragment”
Mezzotint
“mezzotint”
Mosaic
“mosaic”
Fields
cell_size: UnitsValuePointillize
“pointillize”
Clouds
“clouds”
DifferenceClouds
“difference clouds”
Fibers
“fibers”
LensFlare
“lens flare”
Sharpen
“sharpen”
SharpenEdges
“sharpen edges”
SharpenMore
“sharpen more”
SmartSharpen
“smart sharpen”
Fields
radius: UnitsValueblur: SmartSharpenBlurshadow: SmartSharpenTonehighlight: SmartSharpenToneUnsharpMask
“unsharp mask”
Diffuse
“diffuse”
Emboss
“emboss”
Extrude
“extrude”
FindEdges
“find edges”
Solarize
“solarize”
Tiles
“tiles”
Fields
TraceContour
“trace contour”
Wind
“wind”
DeInterlace
“de-interlace”
NtscColors
“ntsc colors”
Custom
“custom”
HighPass(RadiusFilter)
“high pass”
Maximum(RadiusFilter)
“maximum”
Minimum(RadiusFilter)
“minimum”
Offset
“offset”
Puppet
“puppet”
OilPaintPlugin
“oil paint plugin”
HsbHsl
“hsb/hsl”
OilPaint
“oil paint”
Fields
Liquify
“liquify”
PerspectiveWarp
“perspective warp”
Curves
“curves”
Invert
“invert”
BrightnessContrast
“brightness/contrast”
Trait Implementations§
Source§impl Clone for FilterVariant
impl Clone for FilterVariant
Source§fn clone(&self) -> FilterVariant
fn clone(&self) -> FilterVariant
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more