Aracılığıyla paylaş


ColorSpace.Rgb.Oetf Property

Definition

Returns the opto-electronic transfer function (OETF) of this color space.

public virtual Java.Util.Functions.IDoubleUnaryOperator Oetf { [Android.Runtime.Register("getOetf", "()Ljava/util/function/DoubleUnaryOperator;", "GetGetOetfHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getOetf", "()Ljava/util/function/DoubleUnaryOperator;", "GetGetOetfHandler", ApiSince=26)>]
member this.Oetf : Java.Util.Functions.IDoubleUnaryOperator

Property Value

A transfer function that converts from linear space to "gamma space"

Attributes

Remarks

Returns the opto-electronic transfer function (OETF) of this color space. The inverse function is the electro-optical transfer function (EOTF) returned by #getEotf(). These functions are defined to satisfy the following equality for \(x \in [0..1]\):

$$OETF(EOTF(x)) = EOTF(OETF(x)) = x$$

For RGB colors, this function can be used to convert from linear space to "gamma space" (gamma encoded). The terms gamma space and gamma encoded are frequently used because many OETFs can be closely approximated using a simple power function of the form \(x^{\frac{1}{\gamma}}\) (the approximation of the Named#SRGB sRGB OETF uses \(\gamma=2.2\) for instance).

Java documentation for android.graphics.ColorSpace.Rgb.getOetf().

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