public final boolean isPreserveRatio ()

Indicates whether to preserve the aspect ratio of the original image when scaling to fit the image within the bounding box provided by width and height.

If set to true, it affects the dimensions of this Image in the following way:

The reported width and height may be different from the initially set values if they needed to be adjusted to preserve aspect ratio. If unset or set to false, it affects the dimensions of this ImageView in the following way:

Returns:  true if the aspect ratio of the original image is to be preserved when scaling to fit the image within the bounding box provided by width and height.