Function Reference

_GDIPlus_GraphicsDrawEllipse

楕円を描画します。

#Include <GDIPlus.au3>
_GDIPlus_GraphicsDrawEllipse($hGraphics, $iX, $iY, $iWidth, $iHeight[, $hPen = 0])

 

パラメータ

$hGraphics Graphicsオブジェクトのハンドル
$iX 楕円の外接長方形の左上隅のX座標
$iY 楕円の外接長方形の左上隅のY座標
$iWidth 楕円の外接長方形の幅
$iHeight 楕円の外接長方形の高さ
$hPen [オプション]円弧の描画に使用されるペンのハンドル。0の場合、幅1の黒いペンが使用されます。

 

返し値

成功: True
失敗: False

 

注意

なし。

 

関連

 

こちらも参照

MSDNライブラリでGdipDrawEllipseIを検索して下さい。

 


#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_GraphicsDrawEllipse ($hGraphic, 130, 100, 140, 70)

    ; ユーザーが終了するまでループ
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

    ; リソースを破棄
    _GDIPlus_GraphicsDispose ($hGraphic)
    _GDIPlus_Shutdown ()

EndFunc   ;==>_Main