pub enum FilterSource {
SourceGraphic,
SourceAlpha,
BackgroundImage,
BackgroundAlpha,
FillPaint,
StrokePaint,
}Expand description
Filter input sources.
Defines the various built-in sources that can be used as filter inputs, matching the SVG filter primitive input types. These represent implicit inputs available to any filter primitive without requiring previous operations.
Variants§
SourceGraphic
The original graphic content being filtered.
This is the default input - the rendered result of the element the filter is applied to, including all its fill, stroke, and content.
SourceAlpha
Alpha channel only of the original graphic.
Useful for creating effects based on shape/transparency, such as shadows that follow the element’s outline.
BackgroundImage
Background image content behind the filtered element.
Allows filters to incorporate or blend with content behind the element. Not always available depending on the rendering context.
BackgroundAlpha
Alpha channel only of the background image.
The transparency mask of the background content.
FillPaint
The fill paint of the element as an image input.
For elements with gradient or pattern fills, this provides access to the fill as a filter input.
StrokePaint
The stroke paint of the element as an image input.
For elements with gradient or pattern strokes, this provides access to the stroke as a filter input.
Trait Implementations§
Source§impl Clone for FilterSource
impl Clone for FilterSource
Source§fn clone(&self) -> FilterSource
fn clone(&self) -> FilterSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilterSource
impl Debug for FilterSource
Source§impl PartialEq for FilterSource
impl PartialEq for FilterSource
Source§fn eq(&self, other: &FilterSource) -> bool
fn eq(&self, other: &FilterSource) -> bool
self and other values to be equal, and is used by ==.