WICCreateBitmapFromSectionEx

Windows Graphics Device Interface (GDI) セクションハンドルのピクセル領域を背後に持つ IWICBitmapSource を返す。(WICCreateBitmapFromSectionEx)

WICCreateBitmapFromSectionEx width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap

width : [int] 型: UINT ビットマップピクセルの幅。
height : [int] 型: UINT ビットマップピクセルの高さ。
pixelFormat : [var] 型: REFWICPixelFormatGUID ビットマップのピクセル形式。
hSection : [intptr] 型: HANDLE セクションハンドル。CreateFileMapping 関数が返すファイルマッピングオブジェクトのハンドルである。
stride : [int] 型: UINT 各走査線のバイト数。
offset : [int] 型: UINT セクション内のオフセット。
desiredAccessLevel : [int] 型: WICSectionAccessLevel 希望するアクセスレベル。
ppIBitmap : [var] 型: IWICBitmap** ビットマップを受け取るポインタ。

(プラグイン / モジュール : windowscodecs.dll)

解説

Windows Graphics Device Interface (GDI) セクションハンドルのピクセル領域を背後に持つ
IWICBitmapSource を返す。(WICCreateBitmapFromSectionEx)

[戻り値]
型: HRESULT 関数が成功すると S_OK を返す。失敗時は HRESULT エラーコードを返す。

情報

プラグイン / モジュールwindowscodecs.dll
バージョン1.0
作成日2026/04/16
著作者IronHSP / CsWin32 bridge
URLhttps://github.com/inovia/IronHSP
備考Win32 API の windowscodecs.dll 関数群。CsWin32 + win32metadata から自動生成。
hsp3net 専用 (intptr / NSTRUCT / wstr を使用)。
タイプ拡張命令
グループWin32API
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\win32_windowscodecs_gen2.hs