in1 property
Identifies input for the given filter primitive.
This property is read-only.
Syntax
HRESULT get_in1(
[out] SVGAnimatedString **value
);
Property values
Type: SVGAnimatedString
Can be one of the following values:
Value | Condition |
---|---|
SourceGraphic SourceGraphic | Represents the graphics elements that were the original input into the filter element. For raster effects filter primitives, the graphics elements will be rasterized into an initially clear RGBA raster in image space. Pixels left untouched by the original graphic will be left clear. The image is specified to be rendered in linear RGBA pixels. The alpha channel of this image captures any anti-aliasing specified by SVG. (Since the raster is linear, the alpha channel of this image will represent the exact percent coverage of each pixel.) |
SourceAlpha SourceAlpha | Represents the graphics elements that were the original input into the filter element. |
BackgroundImage BackgroundImage | Represents an image snapshot of the canvas under the filter region at the time that the filter element was invoked. |
BackgroundAlpha BackgroundAlpha | Same as |
FillPaint FillPaint | Represents the value of the IHTMLCSSStyleDeclaration::fill property on the target element for the filter effect. The |
StrokePaint StrokePaint | Represents the value of the IHTMLCSSStyleDeclaration::stroke property on the target element for the filter effect. The |
<filter-primitive-reference> <filter-primitive-reference> | If applicable, this filter primitive will use the result from the previous filter primitive as its input. |
Standards information
- Scalable Vector Graphics: Filter Effects, Section 15.7.2
Remarks
Identifies input for the given filter primitive. The value can be either one of six keywords (see above) or can be a string which matches a previous result
attribute value within the same filter element. If no value is provided and this is the first filter primitive, then this filter primitive will use SourceGraphic
as its input. If no value is provided and this is a subsequent filter primitive, then this filter primitive will use the result from the previous filter primitive as its input.
If the value for result
appears multiple times within a given filter element, then a reference to that result will use the closest preceding filter primitive with the given value for attribute result
. Forward references to results are an error.