Effect.EffectMapping Property


在衍生類別中覆寫時,會透過此效果,轉換滑鼠輸入及座標系統。When overridden in a derived class, transforms mouse input and coordinate systems through the effect.

protected public:
 virtual property System::Windows::Media::GeneralTransform ^ EffectMapping { System::Windows::Media::GeneralTransform ^ get(); };
protected internal virtual System.Windows.Media.GeneralTransform EffectMapping { get; }
member this.EffectMapping : System.Windows.Media.GeneralTransform
Protected Friend Overridable ReadOnly Property EffectMapping As GeneralTransform

Property Value


要套用的轉換。The transform to apply. 預設為識別轉換。The default is the identity transform.


覆寫 EffectMapping 屬性,以指派與預設身分識別轉換不同的轉換。Override the EffectMapping property to assign a transform that differs from the default identity transform.

輸入會透過此轉換的反向轉換。Input is transformed through the inverse of this transform. TransformToAncestorTransformToDescendant 方法也會套用 EffectMapping 轉換。The TransformToAncestor and TransformToDescendant methods also have the EffectMapping transform applied.

內送點必須位於 [0-1] 範圍內,且外寄點必須對應到 [0-1] 範圍。Incoming points must be in the [0-1] range, and outgoing points must map to the [0-1] range. Inverse 屬性必須傳回計算反向對應的 GeneralTransformThe 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.

Applies to

See also