語言

SurfaceControl.Transaction.SetDesiredHdrHeadroom 方法

定義

設定指定表面所需的 HDR 餘裕。

[Android.Runtime.Register("setDesiredHdrHeadroom", "(Landroid/view/SurfaceControl;F)Landroid/view/SurfaceControl$Transaction;", "GetSetDesiredHdrHeadroom_Landroid_view_SurfaceControl_FHandler", ApiSince=35)]
public virtual Android.Views.SurfaceControl.Transaction SetDesiredHdrHeadroom(Android.Views.SurfaceControl sc, float desiredRatio);
[<Android.Runtime.Register("setDesiredHdrHeadroom", "(Landroid/view/SurfaceControl;F)Landroid/view/SurfaceControl$Transaction;", "GetSetDesiredHdrHeadroom_Landroid_view_SurfaceControl_FHandler", ApiSince=35)>]
abstract member SetDesiredHdrHeadroom : Android.Views.SurfaceControl * single -> Android.Views.SurfaceControl.Transaction
override this.SetDesiredHdrHeadroom : Android.Views.SurfaceControl * single -> Android.Views.SurfaceControl.Transaction

參數

sc
SurfaceControl

用於 sc. 的 Android.Views.SurfaceControl 值。

desiredRatio
Single

系統。用於期望比例的單一值。

傳回

該組的結果是需要HDR的餘裕操作。

屬性

備註

詳情請參閱 android.view.SurfaceControl.Transaction.setDesiredHdrHeadroom 的 Android 參考文件。

Java 文件 for android.view.SurfaceControl.Transaction.setDesiredHdrHeadroom.

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於