ホーム › Media.Multimedia › DrawDibBegin
DrawDibBegin
関数DrawDib描画環境を初期化して準備する。
シグネチャ
// MSVFW32.dll
#include <windows.h>
BOOL DrawDibBegin(
INT_PTR hdd,
HDC hdc, // optional
INT dxDst,
INT dyDst,
BITMAPINFOHEADER* lpbi,
INT dxSrc,
INT dySrc,
DWORD wFlags
);パラメーター
| 名前 | 型 | 方向 | 説明 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| hdd | INT_PTR | in | DrawDib DC へのハンドル。 | ||||||||||||||||||||||
| hdc | HDC | inoptional | 描画用 DC へのハンドル。このパラメーターは省略可能です。 | ||||||||||||||||||||||
| dxDst | INT | in | コピー先矩形の幅(MM_TEXT クライアント単位)。 | ||||||||||||||||||||||
| dyDst | INT | in | コピー先矩形の高さ(MM_TEXT クライアント単位)。 | ||||||||||||||||||||||
| lpbi | BITMAPINFOHEADER* | in | 画像フォーマットを格納した BITMAPINFOHEADER 構造体へのポインター。DIB のカラーテーブルは画像フォーマットの後に続き、biHeight メンバーは正の値でなければなりません。 | ||||||||||||||||||||||
| dxSrc | INT | in | コピー元矩形の幅(ピクセル単位)。 | ||||||||||||||||||||||
| dySrc | INT | in | コピー元矩形の高さ(ピクセル単位)。 | ||||||||||||||||||||||
| wFlags | DWORD | in | この関数に適用されるフラグ。次の値が定義されています。
|
戻り値の型: BOOL
公式ドキュメント
DrawDibBegin 関数は、DrawDib DC のパラメーターを変更するか、新しい DrawDib DC を初期化します。
戻り値
成功した場合は TRUE を、それ以外の場合は FALSE を返します。
解説(Remarks)
この関数は、lpbi で指定された DIB を DC に描画する準備を行います。画像は dxDest および dyDest で指定されたサイズに伸縮されます。dxDest と dyDest を −1 に設定した場合、DIB は伸縮されずに 1:1 のスケールで描画されます。
DrawDib DC のフラグは、新しいフラグを指定して DrawDibBegin を再発行し、dxDest、dyDest、lpbi、dxSrc、dySrc のうち少なくとも 1 つの設定を変更することで更新できます。
DrawDibBegin のパラメーターが変更されていない場合、以降の関数呼び出しは効果を持ちません。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での呼び出し定義
// MSVFW32.dll
#include <windows.h>
BOOL DrawDibBegin(
INT_PTR hdd,
HDC hdc, // optional
INT dxDst,
INT dyDst,
BITMAPINFOHEADER* lpbi,
INT dxSrc,
INT dySrc,
DWORD wFlags
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("MSVFW32.dll", ExactSpelling = true)]
static extern bool DrawDibBegin(
IntPtr hdd, // INT_PTR
IntPtr hdc, // HDC optional
int dxDst, // INT
int dyDst, // INT
IntPtr lpbi, // BITMAPINFOHEADER*
int dxSrc, // INT
int dySrc, // INT
uint wFlags // DWORD
);<DllImport("MSVFW32.dll", ExactSpelling:=True)>
Public Shared Function DrawDibBegin(
hdd As IntPtr, ' INT_PTR
hdc As IntPtr, ' HDC optional
dxDst As Integer, ' INT
dyDst As Integer, ' INT
lpbi As IntPtr, ' BITMAPINFOHEADER*
dxSrc As Integer, ' INT
dySrc As Integer, ' INT
wFlags As UInteger ' DWORD
) As <MarshalAs(UnmanagedType.Bool)> Boolean
End Function' hdd : INT_PTR
' hdc : HDC optional
' dxDst : INT
' dyDst : INT
' lpbi : BITMAPINFOHEADER*
' dxSrc : INT
' dySrc : INT
' wFlags : DWORD
Declare PtrSafe Function DrawDibBegin Lib "msvfw32" ( _
ByVal hdd As LongPtr, _
ByVal hdc As LongPtr, _
ByVal dxDst As Long, _
ByVal dyDst As Long, _
ByVal lpbi As LongPtr, _
ByVal dxSrc As Long, _
ByVal dySrc As Long, _
ByVal wFlags As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
DrawDibBegin = ctypes.windll.msvfw32.DrawDibBegin
DrawDibBegin.restype = wintypes.BOOL
DrawDibBegin.argtypes = [
ctypes.c_ssize_t, # hdd : INT_PTR
wintypes.HANDLE, # hdc : HDC optional
ctypes.c_int, # dxDst : INT
ctypes.c_int, # dyDst : INT
ctypes.c_void_p, # lpbi : BITMAPINFOHEADER*
ctypes.c_int, # dxSrc : INT
ctypes.c_int, # dySrc : INT
wintypes.DWORD, # wFlags : DWORD
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MSVFW32.dll')
DrawDibBegin = Fiddle::Function.new(
lib['DrawDibBegin'],
[
Fiddle::TYPE_INTPTR_T, # hdd : INT_PTR
Fiddle::TYPE_VOIDP, # hdc : HDC optional
Fiddle::TYPE_INT, # dxDst : INT
Fiddle::TYPE_INT, # dyDst : INT
Fiddle::TYPE_VOIDP, # lpbi : BITMAPINFOHEADER*
Fiddle::TYPE_INT, # dxSrc : INT
Fiddle::TYPE_INT, # dySrc : INT
-Fiddle::TYPE_INT, # wFlags : DWORD
],
Fiddle::TYPE_INT)#[link(name = "msvfw32")]
extern "system" {
fn DrawDibBegin(
hdd: isize, // INT_PTR
hdc: *mut core::ffi::c_void, // HDC optional
dxDst: i32, // INT
dyDst: i32, // INT
lpbi: *mut BITMAPINFOHEADER, // BITMAPINFOHEADER*
dxSrc: i32, // INT
dySrc: i32, // INT
wFlags: u32 // DWORD
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("MSVFW32.dll")]
public static extern bool DrawDibBegin(IntPtr hdd, IntPtr hdc, int dxDst, int dyDst, IntPtr lpbi, int dxSrc, int dySrc, uint wFlags);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSVFW32_DrawDibBegin' -Namespace Win32 -PassThru
# $api::DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags)#uselib "MSVFW32.dll"
#func global DrawDibBegin "DrawDibBegin" sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr
; DrawDibBegin hdd, hdc, dxDst, dyDst, varptr(lpbi), dxSrc, dySrc, wFlags ; 戻り値は stat
; hdd : INT_PTR -> "sptr"
; hdc : HDC optional -> "sptr"
; dxDst : INT -> "sptr"
; dyDst : INT -> "sptr"
; lpbi : BITMAPINFOHEADER* -> "sptr"
; dxSrc : INT -> "sptr"
; dySrc : INT -> "sptr"
; wFlags : DWORD -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "MSVFW32.dll" #cfunc global DrawDibBegin "DrawDibBegin" sptr, sptr, int, int, var, int, int, int ; res = DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags) ; hdd : INT_PTR -> "sptr" ; hdc : HDC optional -> "sptr" ; dxDst : INT -> "int" ; dyDst : INT -> "int" ; lpbi : BITMAPINFOHEADER* -> "var" ; dxSrc : INT -> "int" ; dySrc : INT -> "int" ; wFlags : DWORD -> "int" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "MSVFW32.dll" #cfunc global DrawDibBegin "DrawDibBegin" sptr, sptr, int, int, sptr, int, int, int ; res = DrawDibBegin(hdd, hdc, dxDst, dyDst, varptr(lpbi), dxSrc, dySrc, wFlags) ; hdd : INT_PTR -> "sptr" ; hdc : HDC optional -> "sptr" ; dxDst : INT -> "int" ; dyDst : INT -> "int" ; lpbi : BITMAPINFOHEADER* -> "sptr" ; dxSrc : INT -> "int" ; dySrc : INT -> "int" ; wFlags : DWORD -> "int" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; BOOL DrawDibBegin(INT_PTR hdd, HDC hdc, INT dxDst, INT dyDst, BITMAPINFOHEADER* lpbi, INT dxSrc, INT dySrc, DWORD wFlags) #uselib "MSVFW32.dll" #cfunc global DrawDibBegin "DrawDibBegin" intptr, intptr, int, int, var, int, int, int ; res = DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags) ; hdd : INT_PTR -> "intptr" ; hdc : HDC optional -> "intptr" ; dxDst : INT -> "int" ; dyDst : INT -> "int" ; lpbi : BITMAPINFOHEADER* -> "var" ; dxSrc : INT -> "int" ; dySrc : INT -> "int" ; wFlags : DWORD -> "int" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; BOOL DrawDibBegin(INT_PTR hdd, HDC hdc, INT dxDst, INT dyDst, BITMAPINFOHEADER* lpbi, INT dxSrc, INT dySrc, DWORD wFlags) #uselib "MSVFW32.dll" #cfunc global DrawDibBegin "DrawDibBegin" intptr, intptr, int, int, intptr, int, int, int ; res = DrawDibBegin(hdd, hdc, dxDst, dyDst, varptr(lpbi), dxSrc, dySrc, wFlags) ; hdd : INT_PTR -> "intptr" ; hdc : HDC optional -> "intptr" ; dxDst : INT -> "int" ; dyDst : INT -> "int" ; lpbi : BITMAPINFOHEADER* -> "intptr" ; dxSrc : INT -> "int" ; dySrc : INT -> "int" ; wFlags : DWORD -> "int" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
msvfw32 = windows.NewLazySystemDLL("MSVFW32.dll")
procDrawDibBegin = msvfw32.NewProc("DrawDibBegin")
)
// hdd (INT_PTR), hdc (HDC optional), dxDst (INT), dyDst (INT), lpbi (BITMAPINFOHEADER*), dxSrc (INT), dySrc (INT), wFlags (DWORD)
r1, _, err := procDrawDibBegin.Call(
uintptr(hdd),
uintptr(hdc),
uintptr(dxDst),
uintptr(dyDst),
uintptr(lpbi),
uintptr(dxSrc),
uintptr(dySrc),
uintptr(wFlags),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction DrawDibBegin(
hdd: NativeInt; // INT_PTR
hdc: THandle; // HDC optional
dxDst: Integer; // INT
dyDst: Integer; // INT
lpbi: Pointer; // BITMAPINFOHEADER*
dxSrc: Integer; // INT
dySrc: Integer; // INT
wFlags: DWORD // DWORD
): BOOL; stdcall;
external 'MSVFW32.dll' name 'DrawDibBegin';result := DllCall("MSVFW32\DrawDibBegin"
, "Ptr", hdd ; INT_PTR
, "Ptr", hdc ; HDC optional
, "Int", dxDst ; INT
, "Int", dyDst ; INT
, "Ptr", lpbi ; BITMAPINFOHEADER*
, "Int", dxSrc ; INT
, "Int", dySrc ; INT
, "UInt", wFlags ; DWORD
, "Int") ; return: BOOL●DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags) = DLL("MSVFW32.dll", "bool DrawDibBegin(int, void*, int, int, void*, int, int, dword)")
# 呼び出し: DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags)
# hdd : INT_PTR -> "int"
# hdc : HDC optional -> "void*"
# dxDst : INT -> "int"
# dyDst : INT -> "int"
# lpbi : BITMAPINFOHEADER* -> "void*"
# dxSrc : INT -> "int"
# dySrc : INT -> "int"
# wFlags : DWORD -> "dword"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "msvfw32" fn DrawDibBegin(
hdd: isize, // INT_PTR
hdc: ?*anyopaque, // HDC optional
dxDst: i32, // INT
dyDst: i32, // INT
lpbi: [*c]BITMAPINFOHEADER, // BITMAPINFOHEADER*
dxSrc: i32, // INT
dySrc: i32, // INT
wFlags: u32 // DWORD
) callconv(std.os.windows.WINAPI) i32;proc DrawDibBegin(
hdd: int, # INT_PTR
hdc: pointer, # HDC optional
dxDst: int32, # INT
dyDst: int32, # INT
lpbi: ptr BITMAPINFOHEADER, # BITMAPINFOHEADER*
dxSrc: int32, # INT
dySrc: int32, # INT
wFlags: uint32 # DWORD
): int32 {.importc: "DrawDibBegin", stdcall, dynlib: "MSVFW32.dll".}pragma(lib, "msvfw32");
extern(Windows)
int DrawDibBegin(
ptrdiff_t hdd, // INT_PTR
void* hdc, // HDC optional
int dxDst, // INT
int dyDst, // INT
BITMAPINFOHEADER* lpbi, // BITMAPINFOHEADER*
int dxSrc, // INT
int dySrc, // INT
uint wFlags // DWORD
);ccall((:DrawDibBegin, "MSVFW32.dll"), stdcall, Int32,
(Int, Ptr{Cvoid}, Int32, Int32, Ptr{BITMAPINFOHEADER}, Int32, Int32, UInt32),
hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags)
# hdd : INT_PTR -> Int
# hdc : HDC optional -> Ptr{Cvoid}
# dxDst : INT -> Int32
# dyDst : INT -> Int32
# lpbi : BITMAPINFOHEADER* -> Ptr{BITMAPINFOHEADER}
# dxSrc : INT -> Int32
# dySrc : INT -> Int32
# wFlags : DWORD -> UInt32
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
int32_t DrawDibBegin(
intptr_t hdd,
void* hdc,
int32_t dxDst,
int32_t dyDst,
void* lpbi,
int32_t dxSrc,
int32_t dySrc,
uint32_t wFlags);
]]
local msvfw32 = ffi.load("msvfw32")
-- msvfw32.DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags)
-- hdd : INT_PTR
-- hdc : HDC optional
-- dxDst : INT
-- dyDst : INT
-- lpbi : BITMAPINFOHEADER*
-- dxSrc : INT
-- dySrc : INT
-- wFlags : DWORD
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('MSVFW32.dll');
const DrawDibBegin = lib.func('__stdcall', 'DrawDibBegin', 'int32_t', ['intptr_t', 'void *', 'int32_t', 'int32_t', 'void *', 'int32_t', 'int32_t', 'uint32_t']);
// DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags)
// hdd : INT_PTR -> 'intptr_t'
// hdc : HDC optional -> 'void *'
// dxDst : INT -> 'int32_t'
// dyDst : INT -> 'int32_t'
// lpbi : BITMAPINFOHEADER* -> 'void *'
// dxSrc : INT -> 'int32_t'
// dySrc : INT -> 'int32_t'
// wFlags : DWORD -> 'uint32_t'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("MSVFW32.dll", {
DrawDibBegin: { parameters: ["isize", "pointer", "i32", "i32", "pointer", "i32", "i32", "u32"], result: "i32" },
});
// lib.symbols.DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags)
// hdd : INT_PTR -> "isize"
// hdc : HDC optional -> "pointer"
// dxDst : INT -> "i32"
// dyDst : INT -> "i32"
// lpbi : BITMAPINFOHEADER* -> "pointer"
// dxSrc : INT -> "i32"
// dySrc : INT -> "i32"
// wFlags : DWORD -> "u32"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
int32_t DrawDibBegin(
intptr_t hdd,
void* hdc,
int32_t dxDst,
int32_t dyDst,
void* lpbi,
int32_t dxSrc,
int32_t dySrc,
uint32_t wFlags);
C, "MSVFW32.dll");
// $ffi->DrawDibBegin(hdd, hdc, dxDst, dyDst, lpbi, dxSrc, dySrc, wFlags);
// hdd : INT_PTR
// hdc : HDC optional
// dxDst : INT
// dyDst : INT
// lpbi : BITMAPINFOHEADER*
// dxSrc : INT
// dySrc : INT
// wFlags : DWORD
// 構造体/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 Msvfw32 extends StdCallLibrary {
Msvfw32 INSTANCE = Native.load("msvfw32", Msvfw32.class);
boolean DrawDibBegin(
long hdd, // INT_PTR
Pointer hdc, // HDC optional
int dxDst, // INT
int dyDst, // INT
Pointer lpbi, // BITMAPINFOHEADER*
int dxSrc, // INT
int dySrc, // INT
int wFlags // DWORD
);
}@[Link("msvfw32")]
lib LibMSVFW32
fun DrawDibBegin = DrawDibBegin(
hdd : LibC::SSizeT, # INT_PTR
hdc : Void*, # HDC optional
dxDst : Int32, # INT
dyDst : Int32, # INT
lpbi : BITMAPINFOHEADER*, # BITMAPINFOHEADER*
dxSrc : Int32, # INT
dySrc : Int32, # INT
wFlags : UInt32 # DWORD
) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef DrawDibBeginNative = Int32 Function(IntPtr, Pointer<Void>, Int32, Int32, Pointer<Void>, Int32, Int32, Uint32);
typedef DrawDibBeginDart = int Function(int, Pointer<Void>, int, int, Pointer<Void>, int, int, int);
final DrawDibBegin = DynamicLibrary.open('MSVFW32.dll')
.lookupFunction<DrawDibBeginNative, DrawDibBeginDart>('DrawDibBegin');
// hdd : INT_PTR -> IntPtr
// hdc : HDC optional -> Pointer<Void>
// dxDst : INT -> Int32
// dyDst : INT -> Int32
// lpbi : BITMAPINFOHEADER* -> Pointer<Void>
// dxSrc : INT -> Int32
// dySrc : INT -> Int32
// wFlags : DWORD -> Uint32
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
function DrawDibBegin(
hdd: NativeInt; // INT_PTR
hdc: THandle; // HDC optional
dxDst: Integer; // INT
dyDst: Integer; // INT
lpbi: Pointer; // BITMAPINFOHEADER*
dxSrc: Integer; // INT
dySrc: Integer; // INT
wFlags: DWORD // DWORD
): BOOL; stdcall;
external 'MSVFW32.dll' name 'DrawDibBegin';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "DrawDibBegin"
c_DrawDibBegin :: CIntPtr -> Ptr () -> Int32 -> Int32 -> Ptr () -> Int32 -> Int32 -> Word32 -> IO CInt
-- hdd : INT_PTR -> CIntPtr
-- hdc : HDC optional -> Ptr ()
-- dxDst : INT -> Int32
-- dyDst : INT -> Int32
-- lpbi : BITMAPINFOHEADER* -> Ptr ()
-- dxSrc : INT -> Int32
-- dySrc : INT -> Int32
-- wFlags : DWORD -> Word32
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let drawdibbegin =
foreign "DrawDibBegin"
(intptr_t @-> (ptr void) @-> int32_t @-> int32_t @-> (ptr void) @-> int32_t @-> int32_t @-> uint32_t @-> returning int32_t)
(* hdd : INT_PTR -> intptr_t *)
(* hdc : HDC optional -> (ptr void) *)
(* dxDst : INT -> int32_t *)
(* dyDst : INT -> int32_t *)
(* lpbi : BITMAPINFOHEADER* -> (ptr void) *)
(* dxSrc : INT -> int32_t *)
(* dySrc : INT -> int32_t *)
(* wFlags : DWORD -> uint32_t *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library msvfw32 (t "MSVFW32.dll"))
(cffi:use-foreign-library msvfw32)
(cffi:defcfun ("DrawDibBegin" draw-dib-begin :convention :stdcall) :int32
(hdd :int64) ; INT_PTR
(hdc :pointer) ; HDC optional
(dx-dst :int32) ; INT
(dy-dst :int32) ; INT
(lpbi :pointer) ; BITMAPINFOHEADER*
(dx-src :int32) ; INT
(dy-src :int32) ; INT
(w-flags :uint32)) ; DWORD
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $DrawDibBegin = Win32::API::More->new('MSVFW32',
'BOOL DrawDibBegin(LPARAM hdd, HANDLE hdc, int dxDst, int dyDst, LPVOID lpbi, int dxSrc, int dySrc, DWORD wFlags)');
# my $ret = $DrawDibBegin->Call($hdd, $hdc, $dxDst, $dyDst, $lpbi, $dxSrc, $dySrc, $wFlags);
# hdd : INT_PTR -> LPARAM
# hdc : HDC optional -> HANDLE
# dxDst : INT -> int
# dyDst : INT -> int
# lpbi : BITMAPINFOHEADER* -> LPVOID
# dxSrc : INT -> int
# dySrc : INT -> int
# wFlags : DWORD -> DWORD
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。関連項目
使用する型