在Android中裁剪,缩放和旋转图像

时间:2014-08-11 02:17:59

标签: android

我想知道如何使用固定的宽度和高度在其父级上裁剪,缩放和旋转具有缩放背景图像的ImageView。

1 个答案:

答案 0 :(得分:0)

要裁剪(获取子图像),请参阅以下主题:

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

对于缩放和旋转,请使用带有setScale和setRotate的矩阵。

该论坛有许多讨论相关主题的主题,例如

Android Scale a bitmap image

Android - Rotate image around center point?

在发布问题之前,您最好环顾四周:)

相关问题