Android Guides | Samples

Android.Graphics.Camera Class

A camera instance can be used to compute 3D transformations and generate a matrix that can be applied, for instance, on a Canvas.

See Also: Camera

Syntax

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

Remarks

A camera instance can be used to compute 3D transformations and generate a matrix that can be applied, for instance, on a Canvas.

[Android Documentation]

Requirements

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

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

See Also: Object

Public Constructors

Creates a new camera, with empty transformations.

Protected Constructors

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

Public Properties

[read-only]
LocationXSingle. Gets the x location of the camera.
[read-only]
LocationYSingle. Gets the y location of the camera.
[read-only]
LocationZSingle. Gets the z location of the camera.

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.

Public Methods

ApplyToCanvas(Canvas)
Computes the matrix corresponding to the current transformation and applies it to the specified Canvas.
DotWithNormal(Single, Single, Single) : Single
GetMatrix(Matrix)
Computes the matrix corresponding to the current transformation and copies it to the supplied matrix object.
Restore()
Restores the saved state, if any.
Rotate(Single, Single, Single)
Applies a rotation transform around all three axis.
RotateX(Single)
Applies a rotation transform around the X axis.
RotateY(Single)
Applies a rotation transform around the Y axis.
RotateZ(Single)
Applies a rotation transform around the Z axis.
Save()
Saves the camera state.
SetLocation(Single, Single, Single)
Sets the location of the camera.
Translate(Single, Single, Single)
Applies a translation transform on all three axis.