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.
キャンバスに AndroidScript でアークを描画しようとしています。その方法は存在しますか?
ありがとう、
ダン
[彼らは私に質問にさらに追加させているので、どうぞ]
Schnee Wittchen が別のフォーラムに投稿した良い回答を次に示します。
画像オブジェクトの DrawArc メソッドを使用できます。通常の説明とは動作が違うので少しトリッキーだと思いましたが、とにかく使えます。
構文: img.DrawArc( x1, y1, x2, y2 ,開始角度, スイープ角度 );
x1、y1、x2、y2 で長方形を定義します。この四角形内で、startangle から始まり、sweepangle だけ時計回りに回転する円弧が描かれます。