Skip to main content

FilterVariant

Enum FilterVariant 

Source
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”

Fields

§angle: f64

in degrees

§distance: UnitsValue
§

RadialBlur

“radial blur”

Fields

§amount: f64
§

ShapeBlur

“shape blur”

Fields

§radius: UnitsValue
§custom_shape: NamedId
§

SmartBlur

“smart blur”

Fields

§radius: f64
§threshold: f64
§

SurfaceBlur

“surface blur”

Fields

§radius: UnitsValue
§threshold: f64
§

Displace

“displace”

Fields

§horizontal_scale: f64
§vertical_scale: f64
§displacement_map: DisplacementMap
§undefined_areas: WrapOrRepeat
§displacement_file: DisplacementFile
§

Pinch

“pinch”

Fields

§amount: f64
§

PolarCoordinates

“polar coordinates”

Fields

§conversion: PolarConversion
§

Ripple

“ripple”

Fields

§amount: f64
§

Shear

“shear”

Fields

§shear_points: Vec<PointF>
§shear_start: f64
§shear_end: f64
§undefined_areas: WrapOrRepeat
§

Spherize

“spherize”

Fields

§amount: f64
§

Twirl

“twirl”

Fields

§angle: f64

degrees

§

Wave

“wave”

Fields

§number_of_generators: f64
§wave_type: WaveType

TS field type

§wavelength: MinMax
§amplitude: MinMax
§scale: PointF
§random_seed: f64
§undefined_areas: WrapOrRepeat
§

ZigZag

“zigzag”

Fields

§amount: f64
§ridges: f64
§

AddNoise

“add noise”

Fields

§amount: f64

0..1

§distribution: NoiseDistribution
§monochromatic: bool
§random_seed: f64
§

Despeckle

“despeckle”

§

DustAndScratches

“dust and scratches”

Fields

§radius: f64

pixels

§threshold: f64

levels

§

Median(RadiusFilter)

“median”

§

ReduceNoise

“reduce noise”

Fields

§preset: String
§remove_jpeg_artifact: bool
§reduce_color_noise: f64

0..1

§sharpen_details: f64

0..1

§channel_denoise: Vec<ChannelDenoise>
§

ColorHalftone

“color halftone”

Fields

§radius: f64

pixels

§angle1: f64

degrees

§angle2: f64
§angle3: f64
§angle4: f64
§

Crystallize

“crystallize”

Fields

§cell_size: f64
§random_seed: f64
§

Facet

“facet”

§

Fragment

“fragment”

§

Mezzotint

“mezzotint”

Fields

§mezzotint_type: MezzotintType

TS field type

§random_seed: f64
§

Mosaic

“mosaic”

Fields

§cell_size: UnitsValue
§

Pointillize

“pointillize”

Fields

§cell_size: f64
§random_seed: f64
§

Clouds

“clouds”

Fields

§random_seed: f64
§

DifferenceClouds

“difference clouds”

Fields

§random_seed: f64
§

Fibers

“fibers”

Fields

§variance: f64
§strength: f64
§random_seed: f64
§

LensFlare

“lens flare”

Fields

§brightness: f64

percent

§position: PointF
§lens_type: LensType
§

Sharpen

“sharpen”

§

SharpenEdges

“sharpen edges”

§

SharpenMore

“sharpen more”

§

SmartSharpen

“smart sharpen”

Fields

§amount: f64

0..1

§radius: UnitsValue
§threshold: f64
§angle: f64

degrees

§more_accurate: bool
§preset: String
§

UnsharpMask

“unsharp mask”

Fields

§amount: f64

0..1

§radius: UnitsValue
§threshold: f64

levels

§

Diffuse

“diffuse”

Fields

§random_seed: f64
§

Emboss

“emboss”

Fields

§angle: f64

degrees

§height: f64

pixels

§amount: f64

percent

§

Extrude

“extrude”

Fields

§extrude_type: ExtrudeType

TS field type

§size: f64

pixels

§depth: f64
§depth_mode: ExtrudeDepthMode
§random_seed: f64
§solid_front_faces: bool
§mask_incomplete_blocks: bool
§

FindEdges

“find edges”

§

Solarize

“solarize”

§

Tiles

“tiles”

Fields

§number_of_tiles: f64
§maximum_offset: f64

percent

§fill_empty_area_with: TilesFill
§random_seed: f64
§

TraceContour

“trace contour”

Fields

§level: f64
§

Wind

“wind”

Fields

§method: WindMethod
§direction: LeftRight
§

DeInterlace

“de-interlace”

Fields

§new_fields_by: DeInterlaceNewFields
§

NtscColors

“ntsc colors”

§

Custom

“custom”

Fields

§scale: f64
§offset: f64
§matrix: Vec<f64>
§

HighPass(RadiusFilter)

“high pass”

§

Maximum(RadiusFilter)

“maximum”

§

Minimum(RadiusFilter)

“minimum”

§

Offset

“offset”

Fields

§horizontal: f64

pixels

§vertical: f64

pixels

§undefined_areas: OffsetUndefinedAreas
§

Puppet

“puppet”

Fields

§rigid_type: bool
§bounds: Vec<PointF>
§puppet_shape_list: Vec<PuppetShape>
§

OilPaintPlugin

“oil paint plugin”

Fields

§name: String
§gpu: bool
§lighting: bool
§parameters: Vec<NamedValue>
§

HsbHsl

“hsb/hsl”

Fields

§input_mode: RgbHsbHsl
§row_order: RgbHsbHsl
§

OilPaint

“oil paint”

Fields

§lighting_on: bool
§stylization: f64
§cleanliness: f64
§brush_scale: f64
§micro_brush: f64
§light_direction: f64

degrees

§specularity: f64
§

Liquify

“liquify”

Fields

§liquify_mesh: Vec<u8>
§

PerspectiveWarp

“perspective warp”

Fields

§quads: Vec<Vec<f64>>

quad indices

§vertices: Vec<UnitsPoint>
§warped_vertices: Vec<UnitsPoint>
§

Curves

“curves”

Fields

§preset_kind: CurvesPresetKind
§

Invert

“invert”

§

BrightnessContrast

“brightness/contrast”

Fields

§brightness: f64
§contrast: f64
§use_legacy: bool

Trait Implementations§

Source§

impl Clone for FilterVariant

Source§

fn clone(&self) -> FilterVariant

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FilterVariant

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.