ColorSpaceProfiles.GetSupportedColorSpaces(ImageFormatType) Method

Definition

Return a list of color spaces that are compatible with an ImageFormat.

[Android.Runtime.Register("getSupportedColorSpaces", "(I)Ljava/util/Set;", "", ApiSince=34)]
public System.Collections.Generic.ICollection<Android.Graphics.ColorSpace.Named> GetSupportedColorSpaces (Android.Graphics.ImageFormatType imageFormat);
[<Android.Runtime.Register("getSupportedColorSpaces", "(I)Ljava/util/Set;", "", ApiSince=34)>]
member this.GetSupportedColorSpaces : Android.Graphics.ImageFormatType -> System.Collections.Generic.ICollection<Android.Graphics.ColorSpace.Named>

Parameters

imageFormat
ImageFormatType

Returns

set of color spaces

Attributes

Remarks

Return a list of color spaces that are compatible with an ImageFormat. If ImageFormat.UNKNOWN is provided, this function will return a set of all unique color spaces supported by the device, regardless of image format.

Color spaces which are compatible with ImageFormat.PRIVATE are able to be used with SurfaceView, SurfaceTexture, MediaCodec and MediaRecorder.

Java documentation for android.hardware.camera2.params.ColorSpaceProfiles.getSupportedColorSpaces(int).

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