Android Guides | Samples

Android.Graphics.Matrix.ScaleToFit Class

Controlls how the src rect should align into the dst rect for setRectToRect().

See Also: Matrix+ScaleToFit

Syntax

[Android.Runtime.Register("android/graphics/Matrix$ScaleToFit", DoNotGenerateAcw=true)]
public sealed class Matrix.ScaleToFit : Enum

Remarks

Controlls how the src rect should align into the dst rect for setRectToRect().

[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.Matrix.ScaleToFit are listed below.

See Also: Enum

Public Properties

[read-only]
static
CenterMatrix+ScaleToFit. Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst.
[read-only]
static
EndMatrix+ScaleToFit. Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst.
[read-only]
static
FillMatrix+ScaleToFit. Scale in X and Y independently, so that src matches dst exactly.
[read-only]
static
StartMatrix+ScaleToFit. Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst.

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