こんばんは フリーランスの永田です。

19日のアドベントカレンダー投稿予定の記事も書き上げてしまいました。

19日に公開させていただきます。

今回は題名の自作ライブラリーで発見したBugの修正方法を簡単に記載させていただきます。

 

           BothSidesCamera         

自作ライブラリーは前面背面を同時録画でき、スクリーンショット機能を持つライブラリーです。

問題1

パープルボタンを押下して2画面同じ比率にする際、録画画像が2ミリぐらいずれてしまっていた。

対応

縦画面では2画面同じ比率と、録画画像が合っていたので、同じロジックを横画面でも組み込む。

Action

解説

前面背面を指定したframeにする

2画面同じ比率の場合

半分の大きさにして、指定したY座標の設定

以上で横画面で2画面同じ比率の時も、縦画面と同じロジックで撮影画面と合いました。

問題2 +対応+解説

Action

上記は言語をプログラム化した内容になります。

以上で2つのBugを修正しました。合計で1時間30分ぐらいで対応しました。

あと青いButtonのカメラ切り替えの際に横画面の画面崩れが発生していた部分を修正しました。これは3分ぐらいです。

画面回転と横画面のプログラムを入れると、確認項目や難易度が一気に上がりますが、対応できたと思います。

以上、貴重なお時間お読み下さいまして、誠にありがとうございます。

Categories:

Tags:

9 Responses

  1. Excellent beat ! I wish too apprentice while you ammend your site, how can i subscribe for a blog
    web site? The account helped me a appropreiate deal.
    I had been tiny bit familiar of this your broadcast provided vivid clear idea

  2. Today, I went to the beach with my children. I found a sea shell and gave it to my 4 year old daughter and said
    “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
    There was a hermit crab inside and it pinched
    her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  3. Hi, Neat post. There is a problem along with your web site in web explorer, could test this?
    IE still is the market chief and a huge component to
    folks will omit your great writing due to this problem.

  4. I do not even кnow how I еnded uⲣ here, but I thought
    tһis post ᴡas grеat. Ӏ don’t know wh᧐ you аre but certaіnly yoou are going tօ a famous blogger
    if yоu aгen’t aⅼready 😉 Cheers!

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトについて

プログラミング記事、関連記事、ブログを公開しております。

Tool