[英]How to get clarity image when capture from camera?
从camera
捕获图像,然后转换为bitmap
然后设置为图像视图,它看起来不佳,无法获得原始图像,使用滑行库将url图像路径设置为图像视图,我附加了从camera
捕获图像的屏幕快照
Change Imageview code like this 像这样更改Imageview代码
<ImageView android:id="@+id/postImage"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true" />
Also, change Picasso code like this 另外,这样更改毕加索代码
Picasso.with(context)
.load(banner)
.into(holder.bannerImag);
Basically, you should not hardcode the height/width values. 基本上,您不应该对高度/宽度值进行硬编码。 It will change the image clarity.
它将改变图像的清晰度。
You must be getting the thumbnail in your onAcitityResult. 您必须在onAcitityResult中获取缩略图。 You need to get the original file path to load the image of good quality.
您需要获取原始文件路径才能加载高质量的图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.