Android
android.graphics
public static final enum

android.graphics.Matrix.ScaleToFit

java.lang.Object
java.lang.Enum<E extends java.lang.Enum<E>> Serializable Comparable<T>
android.graphics.Matrix.ScaleToFit

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

Summary

Enum Values

Matrix.ScaleToFit  CENTER  Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. 
Matrix.ScaleToFit  END  Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. 
Matrix.ScaleToFit  FILL  Scale in X and Y independently, so that src matches dst exactly. 
Matrix.ScaleToFit  START  Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. 

Public Methods

      static    Matrix.ScaleToFit  valueOf(String name)
    final  static    ScaleToFit[]  values()
Methods inherited from class java.lang.Enum
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Comparable

Details

Enum Values

public static final Matrix.ScaleToFit CENTER

Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. The result is centered inside dst.

public static final Matrix.ScaleToFit END

Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. END aligns the result to the right and bottom edges of dst.

public static final Matrix.ScaleToFit FILL

Scale in X and Y independently, so that src matches dst exactly. This may change the aspect ratio of the src.

public static final Matrix.ScaleToFit START

Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. START aligns the result to the left and top edges of dst.

Public Methods

public static Matrix.ScaleToFit valueOf(String name)

public static final ScaleToFit[] values()

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48