在Android中以编程方式确定相机分辨率(即百万像素) [英] Determining Camera Resolution (i.e. Megapixels) Programmatically in Android

查看:338
本文介绍了在Android中以编程方式确定相机分辨率(即百万像素)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在2.2中开发一个使用Camera的Android应用程序. 现在谁能告诉我是否可以通过编程方式确定Android中以百万像素为单位的相机分辨率"

I am developing an Android application in 2.2, which uses Camera. Now Can anyone tell me that "Is it possible to programmatically determine the Camera Resolution in Megapixels in Android"

推荐答案

图像分辨率是什么意思?

What does image resolution mean?

分辨率是指图像中的像素数.分辨率有时由图像的宽度和高度以及图像中的像素总数来标识.例如,宽2048像素,高1536像素(2048X1536)的图像包含(相乘)3,145,728像素(或3.1兆像素).您可以将其称为2048X1536或3.1百万像素图像.随着相机中拾取设备中的百万像素增加,可以产生的最大尺寸图像也会增加.这意味着5百万像素的摄像头比3百万像素的摄像头能够捕获更大的图像.

Resolution refers to the number of pixels in an image. Resolution is sometimes identified by the width and height of the image as well as the total number of pixels in the image. For example, an image that is 2048 pixels wide and 1536 pixels high (2048X1536) contains (multiply) 3,145,728 pixels (or 3.1 Megapixels). You could call it a 2048X1536 or a 3.1 Megapixel image. As the megapixels in the pickup device in your camera increase so does the possible maximum size image you can produce. This means that a 5 megapixel camera is capable of capturing a larger image than a 3 megapixel camera.

例如:1936 x 1552/1024000 = 3兆像素

Example: 1936 x 1552 / 1024000 = 3 Mega Pixels

这篇关于在Android中以编程方式确定相机分辨率(即百万像素)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆