円弧を描画します。
#Include <GDIPlus.au3>
_GDIPlus_GraphicsDrawArc($hGraphics, $iX, $iY, $iWidth, $iHeight, $fStartAngle, $fSweepAngle[, $hPen = 0])
パラメータ
$hGraphics | Graphicsオブジェクトのハンドル |
$iX | 描画する円弧を定義する楕円の外接長方形の左上隅のX座標 |
$iY | 描画する円弧を定義する楕円の外接長方形の左上隅のY座標 |
$iWidth | 描画する円弧を定義する楕円の外接長方形の幅 |
$iHeight | 描画する円弧を定義する楕円の外接長方形の高さ |
$fStartAngle | 円弧の開始位置とX軸の成す角度 |
$fSweepAngle | 円弧の開始位置と終了位置の成す角度 |
$hPen | [オプション]円弧の描画に使用されるペンのハンドル。0の場合、幅1の黒いペンが使用されます。 |
返し値
成功: | True |
失敗: | False |
注意
なし。
関連
こちらも参照
MSDNライブラリでGdipDrawArcIを検索して下さい。
例
#include <GuiConstantsEx.au3>
#include <GDIPlus.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $hGUI, $hGraphic
; GUI作成
$hGUI = GUICreate("GDI+", 400, 300)
GUISetState()
; 円弧を描画
_GDIPlus_Startup ()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND ($hGUI)
_GDIPlus_GraphicsDrawArc ($hGraphic, 160, 100, 10, 10, 180, 360)
_GDIPlus_GraphicsDrawArc ($hGraphic, 180, 100, 10, 10, 180, 360)
_GDIPlus_GraphicsDrawArc ($hGraphic, 160, 104, 30, 30, 160, -140)
_GDIPlus_GraphicsDrawArc ($hGraphic, 140, 80, 70, 70, 180, 360)
; ユーザーが終了するまでループ
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
; リソースを破棄
_GDIPlus_GraphicsDispose ($hGraphic)
_GDIPlus_Shutdown ()
EndFunc ;==>_Main