com.neomades.graphics.ScaleType |
![]() |
Different mode for scaling the image to the bound of its view.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | SCALE_ASPECT_FILL | Scales the image to fill the size of the view by maintaining the aspect ratio. | |||||||||
int | SCALE_ASPECT_FIT | Scales the image to fit the size of the view by maintaining the aspect ratio. | |||||||||
int | STRETCH | Scales the image to fit the size of the view by changing the aspect ratio of the image if necessary. |
Scales the image to fill the size of the view by maintaining the aspect ratio. Some parts of the image could be outside the view and hidden, in this case, the image is centered.
Scales the image to fit the size of the view by maintaining the aspect ratio. Any remaining area of the views bounds is transparent.
Scales the image to fit the size of the view by changing the aspect ratio of the image if necessary.