Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
なぜ時々どのようなピクセルが好きなのかを描くのですか?
xAxis = new RectF(0, 0, 400, 400);
それ以外の場合は、次のような浮動小数点が必要です。
xAxis = new RectF(0.29f, 0.24f, 0.55f, 0.76f);
どれをいつ使用するかをどうやって知ることができますか?浮動小数点バージョンを使用していたため、突然線が消え、何が起こったのかを理解するのに時間がかかりました。
RectFの代わりにRectだけを使ってみませんか?RectFは浮動小数点用、Rectは整数用です