1

Is there a way in Android to show just an specific region of an image in an ImageView without preprocessing the bitmap? For instance using any of the available ScaleType (ie: MATRIX)?

mollymay
  • 512
  • 4
  • 13
  • 1
    Yeah, it is possible. Just create correct matrix to translate and scale bitmap. [An example](http://stackoverflow.com/questions/6075363/android-image-view-matrix-scale-translate) – Leonidos Jul 23 '13 at 11:02

1 Answers1

2

Hope this helps you, it contains the different ScaleTypes: http://etcodehome.blogspot.com.es/2011/05/android-imageview-scaletype-samples.html

JesusS
  • 1,645
  • 1
  • 18
  • 31
  • thanks, apparently ScaleType.MATRIX setting a fix width and height for the ImageView does the job :) – mollymay Jul 23 '13 at 12:29