Freigeben über


ScriptIntrinsicHistogram.SetDotCoefficients Method

Definition

Set the coefficients used for the RGBA to Luminocity calculation.

[Android.Runtime.Register("setDotCoefficients", "(FFFF)V", "")]
public void SetDotCoefficients (float r, float g, float b, float a);
[<Android.Runtime.Register("setDotCoefficients", "(FFFF)V", "")>]
member this.SetDotCoefficients : single * single * single * single -> unit

Parameters

r
Single

Red coefficient

g
Single

Green coefficient

b
Single

Blue coefficient

a
Single

Alpha coefficient

Attributes

Remarks

Set the coefficients used for the RGBA to Luminocity calculation. The default is {0.299f, 0.587f, 0.114f, 0.f}.

Coefficients must be >= 0 and sum to 1.0 or less.

Java documentation for android.renderscript.ScriptIntrinsicHistogram.setDotCoefficients(float, float, float, float).

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