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

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

问题描述

我正在 2.2 中开发一个使用相机的 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天全站免登陆