简体   繁体   English

Android:要在Android中将捕获的图像存储在每个设备中,该图像的大小必须相同

[英]Android :To stored captured image in android that must be same size in every devices

是否有可能将相机捕获的图像存储到Sdcard中,其存储空间仅为50kb,并且当我从不同的不同设备捕获图像时,其大小应相同。

Put this code 输入此代码

Parameters parameters = camera.getParameters();
parameters.set("jpeg-quality", 70);
parameters.setPictureFormat(PixelFormat.JPEG);
parameters.setPictureSize(2048, 1232);
camera.setParameters(parameters);

Set this parameters , not sure but may be this can help you ... 设置此参数,不确定,但是可能可以帮助您...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 捕获的图像未存储在android的特定文件夹中 - Captured image is not stored in the specific folder in android 如何在Android中将捕获的图像压缩到特定大小? - How to Compress captured image to a specific size in Android? 如何在Android中以自定义大小保存捕获的图像 - how to save captured image with custom size in android 在android中减少摄像头捕获图像的大小 - Reduce size of captured image from camera in android 如何在Android中的不同设备上保持相同的图像大小 - How to keep same image size on different devices in android Android:在图片资源上书写并在不同设备上保持相同大小 - Android: write on an image resource and keep the same size on different devices Android中各种设备的图像大小? - Image Size for Various Devices in Android? 如果自定义相机捕获了Android中所有设备的图像,如何旋转图像 - how to rotate an image if captured by custom camera for all devices in android Android 相机在某些设备中提供旋转的捕获图像 - Android Camera giving rotated captured image in some devices Android发送捕获的图像在某些设备上旋转90度 - Android sending captured image rotates 90 degree in some devices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM