ManipulationDelta 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
包含目前操作累積的轉換。
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
struct ManipulationDelta
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public struct ManipulationDelta
var manipulationDelta = {
translation : /* Your value */,
scale : /* Your value */,
rotation : /* Your value */,
expansion : /* Your value */
}
Public Structure ManipulationDelta
- 繼承
-
ManipulationDelta
- 屬性
欄位
| 名稱 | Description |
|---|---|
| Expansion |
x-y 螢幕座標的變化,單位為裝置無關像素(DIP)。 |
| Rotation |
旋轉角度的變化,以度數為單位。 |
| Scale |
觸碰接觸距離的變化,以百分比表示。 例如,若兩個接觸點間距離從 100 裝置無關像素(DIP)變為 200 裝置無關像素(DIP),縮 放 值為 2.0。 |
| Translation |
x-y 螢幕座標的變化,單位為裝置無關像素(DIP)。 |