Android Guides | Samples

Android.Graphics.LightingColorFilter Class

A color filter that can be used to simulate simple lighting effects.

See Also: LightingColorFilter

Syntax

[Android.Runtime.Register("android/graphics/LightingColorFilter", DoNotGenerateAcw=true)]
public class LightingColorFilter : ColorFilter

Remarks

A color filter that can be used to simulate simple lighting effects. A LightingColorFilter is defined by two parameters, one used to multiply the source color (called colorMultiply) and one used to add to the source color (called colorAdd). The alpha channel is left untouched by this color filter. Given a source color RGB, the resulting R'G'B' color is computed thusly:

java Example

 R' = R * colorMultiply.R + colorAdd.R
 G' = G * colorMultiply.G + colorAdd.G
 B' = B * colorMultiply.B + colorAdd.B
The result is pinned to the [0..255] range for each channel.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Graphics.LightingColorFilter are listed below.

See Also: ColorFilter

Public Constructors

Create a colorfilter that multiplies the RGB channels by one color, and then adds a second color.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.