Android.Renderscripts.ScriptIntrinsicColorMatrix Class
Intrinsic for applying a color matrix to allocations.

See Also: ScriptIntrinsicColorMatrix Members

Syntax

[Android.Runtime.Register("android/renderscript/ScriptIntrinsicColorMatrix", DoNotGenerateAcw=true)]
public sealed class ScriptIntrinsicColorMatrix : ScriptIntrinsic

Remarks

Intrinsic for applying a color matrix to allocations. If the element type is NoType:android/renderscript/Element$DataType;Href=../../../reference/android/renderscript/Element.DataType.html#UNSIGNED_8, it is converted to NoType:android/renderscript/Element$DataType;Href=../../../reference/android/renderscript/Element.DataType.html#FLOAT_32 and normalized from (0-255) to (0-1). If the incoming vector size is less than four, a Element.F32_4(RenderScript) is created by filling the missing vector channels with zero. This value is then multiplied by the 4x4 color matrix as performed by rsMatrixMultiply(), adding a Element.F32_4(RenderScript), and then writing it to the output Android.Renderscripts.Allocation. If the ouptut type is unsigned, the value is normalized from (0-1) to (0-255) and converted. If the output vector size is less than four, the unused channels are discarded. Supported elements types are Element.U8(RenderScript), Element.U8_2(RenderScript), Element.U8_3(RenderScript), Element.U8_4(RenderScript), Element.F32(RenderScript), Element.F32_2(RenderScript), Element.F32_3(RenderScript), and Element.F32_4(RenderScript).

[Android Documentation]

Requirements

Namespace: Android.Renderscripts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17