Users Pricing

forum

Home Forums Configure ImageView to display subrect of bitmap in Android – MindStick

Configure ImageView to display subrect of bitmap in Android

Mark M 2808 07 Nov 2014

Hi Guys

I have a view that contains an ImageView. The ImageView is populated with a png resource, and fills the width and height of the image view.

Instead of this configuration, I would like to display the image zoomed in by an arbitrary percentage, and translated by an arbitrary coordinate. My question is, how can I configure an image view to display a sub-region of it's src bitmap, with arbitrary translation?

I would really appreciate your help.

Thanks


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md