如何裁剪来自android资源文件夹(@mipmap)的图像?

时间:2017-04-24 08:34:58

标签: android android-viewpager crop

我有一个图像视图寻呼机,它将选择一个图像。但我想在图像中使用zoomIn和ZoomOut功能裁剪此图像。我可以这样做吗?

mImageCaptureUri=Uri.parse("android.resource://app.islamic.unikacomp.myapplication/" +sliderImagesId[num]);
// Retrieve a WallpaperManager
WallpaperManager myWallpaperManager = WallpaperManager.getInstance(Animalwallpaper.this);         
try {
// Change the current system wallpaper
myWallpaperManager.setResource(sliderImagesId[num]);
// Show a toast message on successful change
Toast.makeText(Animalwallpaper.this,"Wallpaper successfully changed", Toast.LENGTH_SHORT).show();

} catch (IOException e) {
// TODO Auto-generated catch block
}

1 个答案:

答案 0 :(得分:0)

您可以在Github上找到多个库 这里有几个 -

Android Image Cropper

Croper