Taal

Color.GetBrightness Method

Definition

Calculates brightness from the average of the darkest and brightest RGB components.

public float GetBrightness();
member this.GetBrightness : unit -> single

Returns

The sum of the smallest and largest RGB byte values, divided by 510.

Remarks

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