Export (0) Print
Expand All

Effect.EffectMapping Property

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

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

protected internal virtual GeneralTransform EffectMapping { get; }

Property Value

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

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

Input is transformed through the inverse of this transform. The TransformToAncestor and TransformToDescendant methods also have the EffectMapping transform applied.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft