Here you’ll find a ImageContentMode description.

It’s an ENUM class responsible to define how the stated image will be visualized on UI.

enum class ImageContentMode {

It can be configured as FIT_XY, FIT_CENTER, CENTER_CROP and CENTER:

  1. FIT_XY: Considers the X and Y scale so the original image matches to the predicted dimensions for the UI visualization. It can change the image proportion.
  2. FIT_CENTER: Considers a computed scale that will keep the image’s original proportion and also guarantees that it entirely fits on the UI’s space. At least two axes (X or Y) will serve. The result is centralized on the image’s local.
  3. CENTER_CROP: Considers an uniform scale (keeping the image’s proportion) so both image’s dimensions (width and height) will be equal or bigger than the dimension correspondent to UI’s view.
  4. CENTER: center image that will be visualized, but not redimensioned.

Last modified February 11, 2021: create content (#298) (43225e15)