Dil

ExtensionSessionConfiguration.SetColorSpace(ColorSpace+Named) Method

Definition

Set a specific device-supported color space.

[Android.Runtime.Register("setColorSpace", "(Landroid/graphics/ColorSpace$Named;)V", "", ApiSince=35)]
public void SetColorSpace(Android.Graphics.ColorSpace.Named colorSpace);
[<Android.Runtime.Register("setColorSpace", "(Landroid/graphics/ColorSpace$Named;)V", "", ApiSince=35)>]
member this.SetColorSpace : Android.Graphics.ColorSpace.Named -> unit

Parameters

colorSpace
ColorSpace.Named
Attributes

Remarks

Set a specific device-supported color space.

Clients can choose from any profile advertised as supported in CameraCharacteristics.REQUEST_AVAILABLE_COLOR_SPACE_PROFILES queried using ColorSpaceProfiles.getSupportedColorSpaces. When set, the colorSpace will override the default color spaces of the output targets, or the color space implied by the dataSpace passed into an ImageReader's constructor.

Android reference for android.hardware.camera2.params.ExtensionSessionConfiguration.setColorSpace.

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.

Applies to