Sdílet prostřednictvím


ColorSpace.Name Property

Definition

Returns the name of this color space.

public virtual string Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "GetGetNameHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "GetGetNameHandler", ApiSince=26)>]
member this.Name : string

Property Value

A non-null String of length >= 1

Attributes

Remarks

Returns the name of this color space. The name is never null and contains always at least 1 character.

Color space names are recommended to be unique but are not guaranteed to be. There is no defined format but the name usually falls in one of the following categories:

<ul> <li>Generic names used to identify color spaces in non-RGB color models. For instance: Named#CIE_LAB Generic L*a*b*.</li> <li>Names tied to a particular specification. For instance: Named#SRGB sRGB IEC61966-2.1 or Named#ACES SMPTE ST 2065-1:2012 ACES.</li> <li>Ad-hoc names, often generated procedurally or by the user during a calibration workflow. These names often contain the make and model of the display.</li> </ul>

Because the format of color space names is not defined, it is not recommended to programmatically identify a color space by its name alone. Names can be used as a first approximation.

It is however perfectly acceptable to display color space names to users in a UI, or in debuggers and logs. When displaying a color space name to the user, it is recommended to add extra information to avoid ambiguities: color model, a representation of the color space's gamut, white point, etc.

Java documentation for android.graphics.ColorSpace.getName().

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