ColorSpace.IsSrgb Property

Definition

Indicates whether this color space is the sRGB color space or equivalent to the sRGB color space.

public virtual bool IsSrgb { [Android.Runtime.Register("isSrgb", "()Z", "GetIsSrgbHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isSrgb", "()Z", "GetIsSrgbHandler", ApiSince=26)>]
member this.IsSrgb : bool

Property Value

True if this color space is the sRGB color space (or a close approximation), false otherwise

Attributes

Remarks

Indicates whether this color space is the sRGB color space or equivalent to the sRGB color space.

A color space is considered sRGB if it meets all the following conditions:

<ul> <li>Its color model is Model#RGB.</li> <li> Its primaries are within 1e-3 of the true Named#SRGB sRGB primaries. </li> <li> Its white point is within 1e-3 of the CIE standard illuminant #ILLUMINANT_D65 D65. </li> <li>Its opto-electronic transfer function is not linear.</li> <li>Its electro-optical transfer function is not linear.</li> <li>Its transfer functions yield values within 1e-3 of Named#SRGB.</li> <li>Its range is \([0..1]\).</li> </ul>

This method always returns true for Named#SRGB.

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

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