android怎么实现图片裁剪功能 我想问的是怎么实现,一个图片上面出现那种伸缩框来确定裁剪区域,并可以对伸缩框进行伸缩,并把裁剪的区域保存下来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Bitmap类里面有相应的方法createBitmap(int colors[], int offset, int stride, int width, int height, Config config) 那个显然要自己实现,可以创建一个view然后获得图片的位置,然后再用一个可以拉动的矩形,然后比对图片的位置来获取 楼主你看看我之前写的这篇文章 希望可以帮到你喔 。。http://blog.csdn.net/xys289187120/article/details/6575830 在这之前我已经解决了,就是调用系统的方法处理,对了,我还想问问那个,图片的一些特效,诸如什么古典啊,lemo啊,复古啊,什么的,怎么实现啊 恭喜LZ,解决了就好。对了裁剪好像可以用才clipRect吧!呵呵 看源码吧,我觉得是用Ondraw()画的。。 做个总结吧,既然没人能解决,我上网看了下,裁剪Intent intents = new Intent("com.android.camera.action.CROP");调用相机的裁剪功能,特效啊什么的,现在在探索之中,然后图片合成是要用到paint的一个方法paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY)); 差不多就这样吧 我使用Intent intents = new Intent("com.android.camera.action.CROP");时老是出问题,求指导、、 关于android 图片特效的案例 http://blog.csdn.net/maylian7700?viewmode=contents希望可以帮到你。。 出现无法找到Activity的android.content.ActivityNotFoundException异常,这是由于Android内部的gallery和camera都有处理,可以尝试另一种URI,com.android.gallery的com.android.camera.CropImage,在setClassName时,具体的代码为 final Intent intent = new Intent("com.android.camera.action.CROP"); intent.setClassName("com.android.camera", "com.android.camera.CropImage"); intent.setData(Uri.fromFile(mFile)); intent.putExtra("outputX", width); intent.putExtra("outputY", height); intent.putExtra("aspectX", width); intent.putExtra("aspectY", height); intent.putExtra("scale", true); intent.putExtra("noFaceDetection", true); intent.putExtra("output", Uri.parse("file:/" + mFile.getAbsolutePath())); startActivityForResult(intent, REQUEST_CROP_IMAGE); 上个回答错了,给16楼了,眼花 O(∩_∩)O~出现无法找到Activity的android.content.ActivityNotFoundException异常,这是由于Android内部的gallery和camera都有处理,可以尝试另一种URI,com.android.gallery的com.android.camera.CropImage,在setClassName时,具体的代码为 final Intent intent = new Intent("com.android.camera.action.CROP"); intent.setClassName("com.android.camera", "com.android.camera.CropImage"); intent.setData(Uri.fromFile(mFile)); intent.putExtra("outputX", width); intent.putExtra("outputY", height); intent.putExtra("aspectX", width); intent.putExtra("aspectY", height); intent.putExtra("scale", true); intent.putExtra("noFaceDetection", true); intent.putExtra("output", Uri.parse("file:/" + mFile.getAbsolutePath())); startActivityForResult(intent, REQUEST_CROP_IMAGE); 求高手们看下这个界面如何居中,代码全部放上来,恳求指导!!! android 模拟器 互发中文短信 乱码 android分辨率问题 I2S与MI2S的区别 求Android移动公交信息查询系统源码!! 关于PendingIntent中getActivity方法中参数的问题 Windows CE 6.5与Android区别?各有什么优缺点? 如何配置安卓虚拟机。 梵蒂冈合法的和规范化方向和 Viewpager按钮点击切换图片 在Listview列表中用RatingBar不能响应ListView单击事件问题 cocos2d-x Box2d 问题
createBitmap(int colors[], int offset, int stride,
int width, int height, Config config)
然后获得图片的位置,然后再用一个可以拉动的矩形,然后比对图片的位置来获取
http://blog.csdn.net/xys289187120/article/details/6575830
对了,我还想问问那个,图片的一些特效,诸如什么古典啊,lemo啊,复古啊,什么的,怎么实现啊
裁剪Intent intents = new Intent("com.android.camera.action.CROP");调用相机的裁剪功能,
特效啊什么的,现在在探索之中,然后图片合成是要用到paint的一个方法paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY));
差不多就这样吧
http://blog.csdn.net/maylian7700?viewmode=contents
希望可以帮到你。。
这是由于Android内部的gallery和camera都有处理,可以尝试另一种URI,com.android.gallery的com.android.camera.CropImage,在setClassName时,具体的代码为
final Intent intent = new Intent("com.android.camera.action.CROP");
intent.setClassName("com.android.camera", "com.android.camera.CropImage");
intent.setData(Uri.fromFile(mFile));
intent.putExtra("outputX", width);
intent.putExtra("outputY", height);
intent.putExtra("aspectX", width);
intent.putExtra("aspectY", height);
intent.putExtra("scale", true);
intent.putExtra("noFaceDetection", true);
intent.putExtra("output", Uri.parse("file:/" + mFile.getAbsolutePath()));
startActivityForResult(intent, REQUEST_CROP_IMAGE);
出现无法找到Activity的android.content.ActivityNotFoundException异常,
这是由于Android内部的gallery和camera都有处理,可以尝试另一种URI,com.android.gallery的com.android.camera.CropImage,在setClassName时,具体的代码为
final Intent intent = new Intent("com.android.camera.action.CROP");
intent.setClassName("com.android.camera", "com.android.camera.CropImage");
intent.setData(Uri.fromFile(mFile));
intent.putExtra("outputX", width);
intent.putExtra("outputY", height);
intent.putExtra("aspectX", width);
intent.putExtra("aspectY", height);
intent.putExtra("scale", true);
intent.putExtra("noFaceDetection", true);
intent.putExtra("output", Uri.parse("file:/" + mFile.getAbsolutePath()));
startActivityForResult(intent, REQUEST_CROP_IMAGE);