Win32 API 日本語リファレンス
ホームGraphics.GdiPlus › GdipWarpPath

GdipWarpPath

関数
ワープ変換を適用してGDI+のパスを変形する。
DLLgdiplus.dll呼出規約winapi

シグネチャ

// gdiplus.dll
#include <windows.h>

Status GdipWarpPath(
    GpPath* path,
    Matrix* matrix,
    const PointF* points,
    INT count,
    FLOAT srcx,
    FLOAT srcy,
    FLOAT srcwidth,
    FLOAT srcheight,
    WarpMode warpMode,
    FLOAT flatness
);

パラメーター

名前方向説明
pathGpPath*inoutワープ変形を適用する対象のパスオブジェクトへのポインタ。
matrixMatrix*inoutワープ前に適用する変換行列へのポインタ。NULL可。
pointsPointF*in変形後の宛先となる頂点座標配列(PointF*)へのポインタ。
countINTinpoints配列の要素数(INT)。3で平行四辺形、4で四隅変形となる。
srcxFLOATin変形元矩形の左上X座標(FLOAT)。
srcyFLOATin変形元矩形の左上Y座標(FLOAT)。
srcwidthFLOATin変形元矩形の幅(FLOAT)。
srcheightFLOATin変形元矩形の高さ(FLOAT)。
warpModeWarpModeinワープの種類を指定するWarpMode列挙値。
flatnessFLOATin曲線近似の許容誤差(FLOAT)。小さいほど近似精度が高くなる。

戻り値の型: Status

各言語での呼び出し定義

// gdiplus.dll
#include <windows.h>

Status GdipWarpPath(
    GpPath* path,
    Matrix* matrix,
    const PointF* points,
    INT count,
    FLOAT srcx,
    FLOAT srcy,
    FLOAT srcwidth,
    FLOAT srcheight,
    WarpMode warpMode,
    FLOAT flatness
);
[DllImport("gdiplus.dll", ExactSpelling = true)]
static extern int GdipWarpPath(
    IntPtr path,   // GpPath* in/out
    ref IntPtr matrix,   // Matrix* in/out
    IntPtr points,   // PointF*
    int count,   // INT
    float srcx,   // FLOAT
    float srcy,   // FLOAT
    float srcwidth,   // FLOAT
    float srcheight,   // FLOAT
    int warpMode,   // WarpMode
    float flatness   // FLOAT
);
<DllImport("gdiplus.dll", ExactSpelling:=True)>
Public Shared Function GdipWarpPath(
    path As IntPtr,   ' GpPath* in/out
    ByRef matrix As IntPtr,   ' Matrix* in/out
    points As IntPtr,   ' PointF*
    count As Integer,   ' INT
    srcx As Single,   ' FLOAT
    srcy As Single,   ' FLOAT
    srcwidth As Single,   ' FLOAT
    srcheight As Single,   ' FLOAT
    warpMode As Integer,   ' WarpMode
    flatness As Single   ' FLOAT
) As Integer
End Function
' path : GpPath* in/out
' matrix : Matrix* in/out
' points : PointF*
' count : INT
' srcx : FLOAT
' srcy : FLOAT
' srcwidth : FLOAT
' srcheight : FLOAT
' warpMode : WarpMode
' flatness : FLOAT
Declare PtrSafe Function GdipWarpPath Lib "gdiplus" ( _
    ByVal path As LongPtr, _
    ByRef matrix As LongPtr, _
    ByVal points As LongPtr, _
    ByVal count As Long, _
    ByVal srcx As Single, _
    ByVal srcy As Single, _
    ByVal srcwidth As Single, _
    ByVal srcheight As Single, _
    ByVal warpMode As Long, _
    ByVal flatness As Single) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

GdipWarpPath = ctypes.windll.gdiplus.GdipWarpPath
GdipWarpPath.restype = ctypes.c_int
GdipWarpPath.argtypes = [
    ctypes.c_void_p,  # path : GpPath* in/out
    ctypes.c_void_p,  # matrix : Matrix* in/out
    ctypes.c_void_p,  # points : PointF*
    ctypes.c_int,  # count : INT
    ctypes.c_float,  # srcx : FLOAT
    ctypes.c_float,  # srcy : FLOAT
    ctypes.c_float,  # srcwidth : FLOAT
    ctypes.c_float,  # srcheight : FLOAT
    ctypes.c_int,  # warpMode : WarpMode
    ctypes.c_float,  # flatness : FLOAT
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('gdiplus.dll')
GdipWarpPath = Fiddle::Function.new(
  lib['GdipWarpPath'],
  [
    Fiddle::TYPE_VOIDP,  # path : GpPath* in/out
    Fiddle::TYPE_VOIDP,  # matrix : Matrix* in/out
    Fiddle::TYPE_VOIDP,  # points : PointF*
    Fiddle::TYPE_INT,  # count : INT
    Fiddle::TYPE_FLOAT,  # srcx : FLOAT
    Fiddle::TYPE_FLOAT,  # srcy : FLOAT
    Fiddle::TYPE_FLOAT,  # srcwidth : FLOAT
    Fiddle::TYPE_FLOAT,  # srcheight : FLOAT
    Fiddle::TYPE_INT,  # warpMode : WarpMode
    Fiddle::TYPE_FLOAT,  # flatness : FLOAT
  ],
  Fiddle::TYPE_INT)
#[link(name = "gdiplus")]
extern "system" {
    fn GdipWarpPath(
        path: *mut GpPath,  // GpPath* in/out
        matrix: *mut isize,  // Matrix* in/out
        points: *const PointF,  // PointF*
        count: i32,  // INT
        srcx: f32,  // FLOAT
        srcy: f32,  // FLOAT
        srcwidth: f32,  // FLOAT
        srcheight: f32,  // FLOAT
        warpMode: i32,  // WarpMode
        flatness: f32  // FLOAT
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("gdiplus.dll")]
public static extern int GdipWarpPath(IntPtr path, ref IntPtr matrix, IntPtr points, int count, float srcx, float srcy, float srcwidth, float srcheight, int warpMode, float flatness);
"@
$api = Add-Type -MemberDefinition $sig -Name 'gdiplus_GdipWarpPath' -Namespace Win32 -PassThru
# $api::GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
#uselib "gdiplus.dll"
#func global GdipWarpPath "GdipWarpPath" sptr, sptr, sptr, sptr, float, float, float, float, sptr, float
; GdipWarpPath varptr(path), varptr(matrix), varptr(points), count, srcx, srcy, srcwidth, srcheight, warpMode, flatness   ; 戻り値は stat
; path : GpPath* in/out -> "sptr"
; matrix : Matrix* in/out -> "sptr"
; points : PointF* -> "sptr"
; count : INT -> "sptr"
; srcx : FLOAT -> "float"
; srcy : FLOAT -> "float"
; srcwidth : FLOAT -> "float"
; srcheight : FLOAT -> "float"
; warpMode : WarpMode -> "sptr"
; flatness : FLOAT -> "float"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "gdiplus.dll"
#cfunc global GdipWarpPath "GdipWarpPath" var, var, var, int, float, float, float, float, int, float
; res = GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
; path : GpPath* in/out -> "var"
; matrix : Matrix* in/out -> "var"
; points : PointF* -> "var"
; count : INT -> "int"
; srcx : FLOAT -> "float"
; srcy : FLOAT -> "float"
; srcwidth : FLOAT -> "float"
; srcheight : FLOAT -> "float"
; warpMode : WarpMode -> "int"
; flatness : FLOAT -> "float"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; Status GdipWarpPath(GpPath* path, Matrix* matrix, PointF* points, INT count, FLOAT srcx, FLOAT srcy, FLOAT srcwidth, FLOAT srcheight, WarpMode warpMode, FLOAT flatness)
#uselib "gdiplus.dll"
#cfunc global GdipWarpPath "GdipWarpPath" var, var, var, int, float, float, float, float, int, float
; res = GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
; path : GpPath* in/out -> "var"
; matrix : Matrix* in/out -> "var"
; points : PointF* -> "var"
; count : INT -> "int"
; srcx : FLOAT -> "float"
; srcy : FLOAT -> "float"
; srcwidth : FLOAT -> "float"
; srcheight : FLOAT -> "float"
; warpMode : WarpMode -> "int"
; flatness : FLOAT -> "float"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"math"
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	gdiplus = windows.NewLazySystemDLL("gdiplus.dll")
	procGdipWarpPath = gdiplus.NewProc("GdipWarpPath")
)

// path (GpPath* in/out), matrix (Matrix* in/out), points (PointF*), count (INT), srcx (FLOAT), srcy (FLOAT), srcwidth (FLOAT), srcheight (FLOAT), warpMode (WarpMode), flatness (FLOAT)
r1, _, err := procGdipWarpPath.Call(
	uintptr(path),
	uintptr(matrix),
	uintptr(points),
	uintptr(count),
	uintptr(math.Float32bits(srcx)),
	uintptr(math.Float32bits(srcy)),
	uintptr(math.Float32bits(srcwidth)),
	uintptr(math.Float32bits(srcheight)),
	uintptr(warpMode),
	uintptr(math.Float32bits(flatness)),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // Status
// 注意: float/double 引数は proc.Call では XMM レジスタに渡せません。
// windows.SyscallN(proc.Addr(), math.Float64bits(x), ...) もしくは cgo を使用してください。
function GdipWarpPath(
  path: Pointer;   // GpPath* in/out
  matrix: Pointer;   // Matrix* in/out
  points: Pointer;   // PointF*
  count: Integer;   // INT
  srcx: Single;   // FLOAT
  srcy: Single;   // FLOAT
  srcwidth: Single;   // FLOAT
  srcheight: Single;   // FLOAT
  warpMode: Integer;   // WarpMode
  flatness: Single   // FLOAT
): Integer; stdcall;
  external 'gdiplus.dll' name 'GdipWarpPath';
result := DllCall("gdiplus\GdipWarpPath"
    , "Ptr", path   ; GpPath* in/out
    , "Ptr", matrix   ; Matrix* in/out
    , "Ptr", points   ; PointF*
    , "Int", count   ; INT
    , "Float", srcx   ; FLOAT
    , "Float", srcy   ; FLOAT
    , "Float", srcwidth   ; FLOAT
    , "Float", srcheight   ; FLOAT
    , "Int", warpMode   ; WarpMode
    , "Float", flatness   ; FLOAT
    , "Int")   ; return: Status
●GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness) = DLL("gdiplus.dll", "int GdipWarpPath(void*, void*, void*, int, float, float, float, float, int, float)")
# 呼び出し: GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
# path : GpPath* in/out -> "void*"
# matrix : Matrix* in/out -> "void*"
# points : PointF* -> "void*"
# count : INT -> "int"
# srcx : FLOAT -> "float"
# srcy : FLOAT -> "float"
# srcwidth : FLOAT -> "float"
# srcheight : FLOAT -> "float"
# warpMode : WarpMode -> "int"
# flatness : FLOAT -> "float"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "gdiplus" fn GdipWarpPath(
    path: [*c]GpPath, // GpPath* in/out
    matrix: [*c]isize, // Matrix* in/out
    points: [*c]PointF, // PointF*
    count: i32, // INT
    srcx: f32, // FLOAT
    srcy: f32, // FLOAT
    srcwidth: f32, // FLOAT
    srcheight: f32, // FLOAT
    warpMode: i32, // WarpMode
    flatness: f32 // FLOAT
) callconv(std.os.windows.WINAPI) i32;
proc GdipWarpPath(
    path: ptr GpPath,  # GpPath* in/out
    matrix: ptr int,  # Matrix* in/out
    points: ptr PointF,  # PointF*
    count: int32,  # INT
    srcx: float32,  # FLOAT
    srcy: float32,  # FLOAT
    srcwidth: float32,  # FLOAT
    srcheight: float32,  # FLOAT
    warpMode: int32,  # WarpMode
    flatness: float32  # FLOAT
): int32 {.importc: "GdipWarpPath", stdcall, dynlib: "gdiplus.dll".}
pragma(lib, "gdiplus");
extern(Windows)
int GdipWarpPath(
    GpPath* path,   // GpPath* in/out
    ptrdiff_t* matrix,   // Matrix* in/out
    PointF* points,   // PointF*
    int count,   // INT
    float srcx,   // FLOAT
    float srcy,   // FLOAT
    float srcwidth,   // FLOAT
    float srcheight,   // FLOAT
    int warpMode,   // WarpMode
    float flatness   // FLOAT
);
ccall((:GdipWarpPath, "gdiplus.dll"), stdcall, Int32,
      (Ptr{GpPath}, Ptr{Int}, Ptr{PointF}, Int32, Float32, Float32, Float32, Float32, Int32, Float32),
      path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
# path : GpPath* in/out -> Ptr{GpPath}
# matrix : Matrix* in/out -> Ptr{Int}
# points : PointF* -> Ptr{PointF}
# count : INT -> Int32
# srcx : FLOAT -> Float32
# srcy : FLOAT -> Float32
# srcwidth : FLOAT -> Float32
# srcheight : FLOAT -> Float32
# warpMode : WarpMode -> Int32
# flatness : FLOAT -> Float32
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
int32_t GdipWarpPath(
    void* path,
    intptr_t* matrix,
    void* points,
    int32_t count,
    float srcx,
    float srcy,
    float srcwidth,
    float srcheight,
    int32_t warpMode,
    float flatness);
]]
local gdiplus = ffi.load("gdiplus")
-- gdiplus.GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
-- path : GpPath* in/out
-- matrix : Matrix* in/out
-- points : PointF*
-- count : INT
-- srcx : FLOAT
-- srcy : FLOAT
-- srcwidth : FLOAT
-- srcheight : FLOAT
-- warpMode : WarpMode
-- flatness : FLOAT
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('gdiplus.dll');
const GdipWarpPath = lib.func('__stdcall', 'GdipWarpPath', 'int32_t', ['void *', 'intptr_t *', 'void *', 'int32_t', 'float', 'float', 'float', 'float', 'int32_t', 'float']);
// GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
// path : GpPath* in/out -> 'void *'
// matrix : Matrix* in/out -> 'intptr_t *'
// points : PointF* -> 'void *'
// count : INT -> 'int32_t'
// srcx : FLOAT -> 'float'
// srcy : FLOAT -> 'float'
// srcwidth : FLOAT -> 'float'
// srcheight : FLOAT -> 'float'
// warpMode : WarpMode -> 'int32_t'
// flatness : FLOAT -> 'float'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("gdiplus.dll", {
  GdipWarpPath: { parameters: ["pointer", "pointer", "pointer", "i32", "f32", "f32", "f32", "f32", "i32", "f32"], result: "i32" },
});
// lib.symbols.GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)
// path : GpPath* in/out -> "pointer"
// matrix : Matrix* in/out -> "pointer"
// points : PointF* -> "pointer"
// count : INT -> "i32"
// srcx : FLOAT -> "f32"
// srcy : FLOAT -> "f32"
// srcwidth : FLOAT -> "f32"
// srcheight : FLOAT -> "f32"
// warpMode : WarpMode -> "i32"
// flatness : FLOAT -> "f32"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
int32_t GdipWarpPath(
    void* path,
    intptr_t* matrix,
    void* points,
    int32_t count,
    float srcx,
    float srcy,
    float srcwidth,
    float srcheight,
    int32_t warpMode,
    float flatness);
C, "gdiplus.dll");
// $ffi->GdipWarpPath(path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness);
// path : GpPath* in/out
// matrix : Matrix* in/out
// points : PointF*
// count : INT
// srcx : FLOAT
// srcy : FLOAT
// srcwidth : FLOAT
// srcheight : FLOAT
// warpMode : WarpMode
// flatness : FLOAT
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。
import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;

public interface Gdiplus extends StdCallLibrary {
    Gdiplus INSTANCE = Native.load("gdiplus", Gdiplus.class);
    int GdipWarpPath(
        Pointer path,   // GpPath* in/out
        LongByReference matrix,   // Matrix* in/out
        Pointer points,   // PointF*
        int count,   // INT
        float srcx,   // FLOAT
        float srcy,   // FLOAT
        float srcwidth,   // FLOAT
        float srcheight,   // FLOAT
        int warpMode,   // WarpMode
        float flatness   // FLOAT
    );
}
@[Link("gdiplus")]
lib Libgdiplus
  fun GdipWarpPath = GdipWarpPath(
    path : GpPath*,   # GpPath* in/out
    matrix : LibC::SSizeT*,   # Matrix* in/out
    points : PointF*,   # PointF*
    count : Int32,   # INT
    srcx : Float32,   # FLOAT
    srcy : Float32,   # FLOAT
    srcwidth : Float32,   # FLOAT
    srcheight : Float32,   # FLOAT
    warpMode : Int32,   # WarpMode
    flatness : Float32   # FLOAT
  ) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef GdipWarpPathNative = Int32 Function(Pointer<Void>, Pointer<IntPtr>, Pointer<Void>, Int32, Float, Float, Float, Float, Int32, Float);
typedef GdipWarpPathDart = int Function(Pointer<Void>, Pointer<IntPtr>, Pointer<Void>, int, double, double, double, double, int, double);
final GdipWarpPath = DynamicLibrary.open('gdiplus.dll')
    .lookupFunction<GdipWarpPathNative, GdipWarpPathDart>('GdipWarpPath');
// path : GpPath* in/out -> Pointer<Void>
// matrix : Matrix* in/out -> Pointer<IntPtr>
// points : PointF* -> Pointer<Void>
// count : INT -> Int32
// srcx : FLOAT -> Float
// srcy : FLOAT -> Float
// srcwidth : FLOAT -> Float
// srcheight : FLOAT -> Float
// warpMode : WarpMode -> Int32
// flatness : FLOAT -> Float
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function GdipWarpPath(
  path: Pointer;   // GpPath* in/out
  matrix: Pointer;   // Matrix* in/out
  points: Pointer;   // PointF*
  count: Integer;   // INT
  srcx: Single;   // FLOAT
  srcy: Single;   // FLOAT
  srcwidth: Single;   // FLOAT
  srcheight: Single;   // FLOAT
  warpMode: Integer;   // WarpMode
  flatness: Single   // FLOAT
): Integer; stdcall;
  external 'gdiplus.dll' name 'GdipWarpPath';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "GdipWarpPath"
  c_GdipWarpPath :: Ptr () -> Ptr CIntPtr -> Ptr () -> Int32 -> CFloat -> CFloat -> CFloat -> CFloat -> Int32 -> CFloat -> IO Int32
-- path : GpPath* in/out -> Ptr ()
-- matrix : Matrix* in/out -> Ptr CIntPtr
-- points : PointF* -> Ptr ()
-- count : INT -> Int32
-- srcx : FLOAT -> CFloat
-- srcy : FLOAT -> CFloat
-- srcwidth : FLOAT -> CFloat
-- srcheight : FLOAT -> CFloat
-- warpMode : WarpMode -> Int32
-- flatness : FLOAT -> CFloat
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let gdipwarppath =
  foreign "GdipWarpPath"
    ((ptr void) @-> (ptr intptr_t) @-> (ptr void) @-> int32_t @-> float @-> float @-> float @-> float @-> int32_t @-> float @-> returning int32_t)
(* path : GpPath* in/out -> (ptr void) *)
(* matrix : Matrix* in/out -> (ptr intptr_t) *)
(* points : PointF* -> (ptr void) *)
(* count : INT -> int32_t *)
(* srcx : FLOAT -> float *)
(* srcy : FLOAT -> float *)
(* srcwidth : FLOAT -> float *)
(* srcheight : FLOAT -> float *)
(* warpMode : WarpMode -> int32_t *)
(* flatness : FLOAT -> float *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library gdiplus (t "gdiplus.dll"))
(cffi:use-foreign-library gdiplus)

(cffi:defcfun ("GdipWarpPath" gdip-warp-path :convention :stdcall) :int32
  (path :pointer)   ; GpPath* in/out
  (matrix :pointer)   ; Matrix* in/out
  (points :pointer)   ; PointF*
  (count :int32)   ; INT
  (srcx :float)   ; FLOAT
  (srcy :float)   ; FLOAT
  (srcwidth :float)   ; FLOAT
  (srcheight :float)   ; FLOAT
  (warp-mode :int32)   ; WarpMode
  (flatness :float))   ; FLOAT
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $GdipWarpPath = Win32::API::More->new('gdiplus',
    'int GdipWarpPath(LPVOID path, LPVOID matrix, LPVOID points, int count, float srcx, float srcy, float srcwidth, float srcheight, int warpMode, float flatness)');
# my $ret = $GdipWarpPath->Call($path, $matrix, $points, $count, $srcx, $srcy, $srcwidth, $srcheight, $warpMode, $flatness);
# path : GpPath* in/out -> LPVOID
# matrix : Matrix* in/out -> LPVOID
# points : PointF* -> LPVOID
# count : INT -> int
# srcx : FLOAT -> float
# srcy : FLOAT -> float
# srcwidth : FLOAT -> float
# srcheight : FLOAT -> float
# warpMode : WarpMode -> int
# flatness : FLOAT -> float
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

使用する型