Freigeben über


Effect.EffectMapping Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

When overridden in a derived class, transforms mouse input and coordinate systems through the effect.

Namespace:  System.Windows.Media.Effects
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Protected Friend Overridable ReadOnly Property EffectMapping As GeneralTransform
protected internal virtual GeneralTransform EffectMapping { get; }

Property Value

Type: System.Windows.Media.GeneralTransform
The transform to apply. The default is the identity transform.

Remarks

Override the EffectMapping property to assign a transform that differs from the default identity transform.

Input is transformed through the inverse of this transform.

Incoming points must be in the [0-1] range, and outgoing points must map to the [0-1] range. The Inverse property must return a GeneralTransform that computes the inverse mapping.

The inverse transform maps a point from after the effect is applied to the point that it came from before the effect. The non-inverse transform maps a point from before the effect is applied to after the effect is applied.

Note that the transform does not include information about the physical pixel size being used, and it just operates in the unit range.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.