SurfaceControl.Transaction.SetGeometry 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定指定表面的來源裁切、目標幀和緩衝區轉換。
[Android.Runtime.Register("setGeometry", "(Landroid/view/SurfaceControl;Landroid/graphics/Rect;Landroid/graphics/Rect;I)Landroid/view/SurfaceControl$Transaction;", "GetSetGeometry_Landroid_view_SurfaceControl_Landroid_graphics_Rect_Landroid_graphics_Rect_IHandler", ApiSince=29)]
public virtual Android.Views.SurfaceControl.Transaction SetGeometry(Android.Views.SurfaceControl sc, Android.Graphics.Rect? sourceCrop, Android.Graphics.Rect? destFrame, Android.Views.SurfaceOrientation orientation);
[<Android.Runtime.Register("setGeometry", "(Landroid/view/SurfaceControl;Landroid/graphics/Rect;Landroid/graphics/Rect;I)Landroid/view/SurfaceControl$Transaction;", "GetSetGeometry_Landroid_view_SurfaceControl_Landroid_graphics_Rect_Landroid_graphics_Rect_IHandler", ApiSince=29)>]
abstract member SetGeometry : Android.Views.SurfaceControl * Android.Graphics.Rect * Android.Graphics.Rect * Android.Views.SurfaceOrientation -> Android.Views.SurfaceControl.Transaction
override this.SetGeometry : Android.Views.SurfaceControl * Android.Graphics.Rect * Android.Graphics.Rect * Android.Views.SurfaceOrientation -> Android.Views.SurfaceControl.Transaction
參數
用於 sc. 的 Android.Views.SurfaceControl 值。
- sourceCrop
- Rect
用於原始裁切的 Android.Graphics.Rect 值。
- destFrame
- Rect
Android.Graphics.Rect 值用於最頂幀。
- orientation
- SurfaceOrientation
用於方向的 Android.Views.SurfaceOrientation 值。
傳回
集合幾何運算的結果。
- 屬性
備註
詳情請參閱 android.view.SurfaceControl.Transaction.setGeometry 的 Android 參考文件。
android.view.SurfaceControl.Transaction.setGeometry 的 Java 文件。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。