ホーム › Graphics.GdiPlus › GdipClosePathFigures
GdipClosePathFigures
関数GDI+のパスの全ての図形を閉じる。
シグネチャ
// gdiplus.dll
#include <windows.h>
Status GdipClosePathFigures(
GpPath* path
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| path | GpPath* | inout |
戻り値の型: Status
各言語での呼び出し定義
// gdiplus.dll
#include <windows.h>
Status GdipClosePathFigures(
GpPath* path
);[DllImport("gdiplus.dll", ExactSpelling = true)]
static extern int GdipClosePathFigures(
IntPtr path // GpPath* in/out
);<DllImport("gdiplus.dll", ExactSpelling:=True)>
Public Shared Function GdipClosePathFigures(
path As IntPtr ' GpPath* in/out
) As Integer
End Function' path : GpPath* in/out
Declare PtrSafe Function GdipClosePathFigures Lib "gdiplus" ( _
ByVal path As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
GdipClosePathFigures = ctypes.windll.gdiplus.GdipClosePathFigures
GdipClosePathFigures.restype = ctypes.c_int
GdipClosePathFigures.argtypes = [
ctypes.c_void_p, # path : GpPath* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('gdiplus.dll')
GdipClosePathFigures = Fiddle::Function.new(
lib['GdipClosePathFigures'],
[
Fiddle::TYPE_VOIDP, # path : GpPath* in/out
],
Fiddle::TYPE_INT)#[link(name = "gdiplus")]
extern "system" {
fn GdipClosePathFigures(
path: *mut GpPath // GpPath* in/out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("gdiplus.dll")]
public static extern int GdipClosePathFigures(IntPtr path);
"@
$api = Add-Type -MemberDefinition $sig -Name 'gdiplus_GdipClosePathFigures' -Namespace Win32 -PassThru
# $api::GdipClosePathFigures(path)#uselib "gdiplus.dll"
#func global GdipClosePathFigures "GdipClosePathFigures" sptr
; GdipClosePathFigures varptr(path) ; 戻り値は stat
; path : GpPath* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "gdiplus.dll" #cfunc global GdipClosePathFigures "GdipClosePathFigures" var ; res = GdipClosePathFigures(path) ; path : GpPath* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "gdiplus.dll" #cfunc global GdipClosePathFigures "GdipClosePathFigures" sptr ; res = GdipClosePathFigures(varptr(path)) ; path : GpPath* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; Status GdipClosePathFigures(GpPath* path) #uselib "gdiplus.dll" #cfunc global GdipClosePathFigures "GdipClosePathFigures" var ; res = GdipClosePathFigures(path) ; path : GpPath* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; Status GdipClosePathFigures(GpPath* path) #uselib "gdiplus.dll" #cfunc global GdipClosePathFigures "GdipClosePathFigures" intptr ; res = GdipClosePathFigures(varptr(path)) ; path : GpPath* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
gdiplus = windows.NewLazySystemDLL("gdiplus.dll")
procGdipClosePathFigures = gdiplus.NewProc("GdipClosePathFigures")
)
// path (GpPath* in/out)
r1, _, err := procGdipClosePathFigures.Call(
uintptr(path),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // Statusfunction GdipClosePathFigures(
path: Pointer // GpPath* in/out
): Integer; stdcall;
external 'gdiplus.dll' name 'GdipClosePathFigures';result := DllCall("gdiplus\GdipClosePathFigures"
, "Ptr", path ; GpPath* in/out
, "Int") ; return: Status●GdipClosePathFigures(path) = DLL("gdiplus.dll", "int GdipClosePathFigures(void*)")
# 呼び出し: GdipClosePathFigures(path)
# path : GpPath* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。