Mr tran
Mr tran

Reputation: 1

Cropping , Scaling and Rotating image in Android

I would like to know how can I crop , scale and rotate a ImageView that have a scaled background image using a fixed width and height on it's parent.

Upvotes: 0

Views: 1171

Answers (1)

cyanide
cyanide

Reputation: 3964

To crop (get subImage) see the following thread:

How to Cut a ImageView to a subimage in the range of four specified points

For scale and rotate use Matrix with setScale and setRotate.

This forum has a number of threads discussing relevant topic, e.g.

Android Scale a bitmap image

Android - Rotate image around center point?

Before publishing a question you better look around :)

Upvotes: 1

Related Questions