2011-04-12 2 views
7

내가 camera.takePicture를 사용할 때 이것은 HTC G2 및 Thunderbolt에서만 얻은 것입니다. EV0, Nexus One, Samsung Galaxy S, Droid, Droid X, 등 ....) 아무도 아이디어가있어? 나는 내가 그림을 찍고있는 것을 말할 수있다, 그것은 단지 뒤섞여 모두 뒤섞여있다 ???Thunderbolt & G2에서 카메라에서 이미지가 튀어 나옵니까?

enter image description here

답변

0

나는이 회전에 문제라고 생각합니다.

먼저 비트 맵 (90, 180, 270도)을 회전하여 HTC 전화에서 정상적인 이미지를 얻고 문제를 현지화하십시오. 둘째

당신이 사용을 시도 할 수 있습니다 (그냥 생각) :

@TargetApi(9) 
    public int getCameraOrientation(int paramInt1, int paramInt2) 
    { 
    int i = 90; 
    if (isFrontFacing(paramInt1)); 
    switch (paramInt2) 
    { 
    default: 
     i = this.mInfo[paramInt1].orientation; 
    case 0: 
    case 180: 
    case 90: 
    case 270: 
    } 
    while (true) 
    { 
     return i; 
     i = 270; 
     continue; 
     i = 270; 
    } 
    } 

    public int getRenderOrientation(int paramInt1, int paramInt2) 
    { 
    return paramInt2; 
    } 

    public boolean shouldRenderMirrored(int paramInt) 
    { 
    return false; 
    } 
관련 문제