SetBitmapDimensionEx

機能
ビットマップのサイズを取得する
Declare Function SetBitmapDimensionEx Lib "gdi32.dll" _
(ByVal hBitmap As Long, ByVal nWidth As Long, ByVal nHeight As Long, lpSize As SIZE) As Long
Declare Function SetBitmapDimensionEx Lib "gdi32.dll" _
(ByVal hBitmap As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, lpSize As SIZE) As Integer

BOOL SetBitmapDimensionEx(
HBITMAP hBitmap,
int nWidth,
int nHeight,
LPSIZE lpSize
);
引数
hBitmap

ビットマップのハンドル(DIBSectionは指定不可)
nWidth
ビットマップの幅(単位:0.1mm)
nHeight
同、高さ(同上)
lpSize
直前のビットマップのサイズを格納するSIZE構造体
不要なときは ByVal lpSize As Long と宣言して0を与える
戻り値
成功したとき            0以外
失敗したとき            0