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