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