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