sephiroth74 / ImageViewZoom

Android ImageView widget with zoom and pan capabilities
Other
1.9k stars 533 forks source link

MinZoom not working #79

Open gintechsystems opened 9 years ago

gintechsystems commented 9 years ago

Hello,

I am trying to set the min zoom but it seems to be scaling the image down still. The image is set to fit the screen using the display matrix. I don't want it to be smaller than that.

What am I doing wrong?

expandedImageView.setImageBitmap(convertToBitmap(imageDrawable, imageDrawable.getIntrinsicWidth(), imageDrawable.getIntrinsicHeight()), expandedImageView.getDisplayMatrix(), 1f, 3f);

TomkaRUSS commented 8 years ago

Hello,

I resolved this problem. I just writed 0.99f instead 1f.