80,492
社区成员
发帖
与我相关
我的任务
分享

Size size0 = parameters.getPictureSize();
if( rotation == 0 || rotation == 2 ) {
mPreviewFL.setAspectRatio((double) size0.height / size0.width);
nWidth = width;
nHeight = height;
} else if( rotation == 1 || rotation == 3) {
mPreviewFL.setAspectRatio((double) size0.width / size0.height);
nWidth = width;
nHeight = height;
}