public interface

ScaleType

com.neomades.graphics.ScaleType
Known Indirect Subclasses

Class Overview

Different mode for scaling the image to the bound of its view.

Summary

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.

Constants

public static final int SCALE_ASPECT_FILL

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.

Constant Value: 3 (0x00000003)

public static final int SCALE_ASPECT_FIT

Scales the image to fit the size of the view by maintaining the aspect ratio. Any remaining area of the views bounds is transparent.

Constant Value: 2 (0x00000002)

public static final int STRETCH

Scales the image to fit the size of the view by changing the aspect ratio of the image if necessary.

Constant Value: 1 (0x00000001)