この下のサンプルコードを使いたいのですが、フロントカメラを使うので左右が反転なのはいいのですが、portraitでなく動画に使いたいので、座標軸を反転していない状態に戻したいです。
どうすればいいのでしょうか?
java
1 // フロントカメラなので左右反転、portraitなので座標軸反転 2 rectss.left = screen_width * (-L.top + 1000) / 2000; 3 rectss.right = screen_width * (-L.bottom + 1000) / 2000; 4 rectss.top = screen_height * (-L.left + 1000) / 2000; 5 rectss.bottom = screen_height * (-L.right + 1000) / 2000;
これで合っていますでしょうか?
java
1rectss.left = screen_width * (-L.right + 1000) / 2000; 2 rectss.right = screen_width * (-L.left + 1000) / 2000; 3 rectss.top = screen_height * (-L.top + 1000) / 2000; 4 rectss.bottom = screen_height * (-L.bottom + 1000) / 2000;
あなたの回答
tips
プレビュー