SurfaceControl.Builder.SetFormat(Format) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the pixel format of the controlled surface's buffers, using constants from PixelFormat .
[Android.Runtime.Register("setFormat", "(I)Landroid/view/SurfaceControl$Builder;", "GetSetFormat_IHandler", ApiSince=29)]
public virtual Android.Views.SurfaceControl.Builder SetFormat(Android.Graphics.Format format);
[<Android.Runtime.Register("setFormat", "(I)Landroid/view/SurfaceControl$Builder;", "GetSetFormat_IHandler", ApiSince=29)>]
abstract member SetFormat : Android.Graphics.Format -> Android.Views.SurfaceControl.Builder
override this.SetFormat : Android.Graphics.Format -> Android.Views.SurfaceControl.Builder
Parameters
- format
- Format
The Android.Graphics.Format value used for format.
Returns
The result of the set format operation.
- Attributes
Remarks
For details, see the Android reference documentation for android.view.SurfaceControl.Builder.setFormat.
Java documentation for android.view.SurfaceControl.Builder.setFormat.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.