Resizing the Camera Preview
Posted
by
uday
on Stack Overflow
See other posts from Stack Overflow
or by uday
Published on 2011-03-31T11:42:12Z
Indexed on
2012/09/17
9:38 UTC
Read the original article
Hit count: 186
android
I have implemented a camera application, which will show the preview in the entire screen of the device. But my requirement is to show the Camera preview in a small screen. My device resolution is 800x480(WxH) i.e, Nexus one. I can able to show the preview in the entire screen without scale down the preview. Its coming perfectly, but when i try show the preview in small screens(part of my total mobile screen), the preview is getting stretched and not looking good.
Is there any way to show the preview correctly in a small screen. I think we need to scale down the image preview. But when i try to scale down the image preview, the android system itself doesn't allowing to set the scaled preview size.
Could any one please help me how to scale the image preview in small screen.
© Stack Overflow or respective owner