Matrix.ScaleToFit
public
static
final
enum
Matrix.ScaleToFit
extends Enum<Matrix.ScaleToFit>
| java.lang.Object | ||
| ↳ | java.lang.Enum<android.graphics.Matrix.ScaleToFit> | |
| ↳ | 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)
|
static
final
ScaleToFit[]
|
values()
|
Inherited methods | |
|---|---|
java.lang.Enum
| |
java.lang.Object
| |
java.lang.Comparable
| |
Enum values
CENTER
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.
END
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.
FILL
Matrix.ScaleToFit FILL
Scale in X and Y independently, so that src matches dst exactly. This may change the aspect ratio of the src.
START
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
valueOf
Matrix.ScaleToFit valueOf (String name)
| Parameters | |
|---|---|
name |
String |
| Returns | |
|---|---|
Matrix.ScaleToFit |
|
Interfaces
Classes
- Bitmap
- BitmapFactory
- BitmapFactory.Options
- BitmapRegionDecoder
- BitmapShader
- BlurMaskFilter
- Camera
- Canvas
- Color
- ColorFilter
- ColorMatrix
- ColorMatrixColorFilter
- ColorSpace
- ColorSpace.Connector
- ColorSpace.Rgb
- ColorSpace.Rgb.TransferParameters
- ComposePathEffect
- ComposeShader
- CornerPathEffect
- DashPathEffect
- DiscretePathEffect
- DrawFilter
- EmbossMaskFilter
- ImageFormat
- Interpolator
- LightingColorFilter
- LinearGradient
- MaskFilter
- Matrix
- Movie
- NinePatch
- Outline
- Paint
- Paint.FontMetrics
- Paint.FontMetricsInt
- PaintFlagsDrawFilter
- Path
- PathDashPathEffect
- PathEffect
- PathMeasure
- Picture
- PixelFormat
- Point
- PointF
- PorterDuff
- PorterDuffColorFilter
- PorterDuffXfermode
- RadialGradient
- Rect
- RectF
- Region
- RegionIterator
- Shader
- SumPathEffect
- SurfaceTexture
- SweepGradient
- Typeface
- Typeface.Builder
- Xfermode
- YuvImage
Enums
- Bitmap.CompressFormat
- Bitmap.Config
- BlurMaskFilter.Blur
- Canvas.EdgeType
- Canvas.VertexMode
- ColorSpace.Adaptation
- ColorSpace.Model
- ColorSpace.Named
- ColorSpace.RenderIntent
- Interpolator.Result
- Matrix.ScaleToFit
- Paint.Align
- Paint.Cap
- Paint.Join
- Paint.Style
- Path.Direction
- Path.FillType
- Path.Op
- PathDashPathEffect.Style
- PorterDuff.Mode
- Region.Op
- Shader.TileMode
Exceptions