GetDesktopScreenGraphMemImage_1

デスクトップ画面から指定領域の画像のメモリイメージの先頭アドレスとイメージの幅・高さ・ストライドを取得する( イメージのフォーマットは ColorBitDepth = 32( バイト順で B8G8R8X8 の 32bitカラー ) ColorBitDepth = 24( バイト順で B8G8R8 の 24bitカラー ) )(拡張版)

val = GetDesktopScreenGraphMemImage_1(x1, y1, x2, y2, Width, Height, Stride, ColorBitDepth)

x1 : int (int)
y1 : int (int)
x2 : int (int)
y2 : int (int)
Width : [out] int (var)
Height : [out] int (var)
Stride : [out] int (var)
ColorBitDepth : int (int)

(プラグイン / モジュール : DxLibW)

解説

GetDesktopScreenGraphMemImage の拡張版です。追加パラメータ: ColorBitDepth

デスクトップ画面から指定領域の画像のメモリイメージの先頭アドレスとイメージの幅・高さ・ストライドを取得する( イメージのフォーマットは ColorBitDepth = 32( バイト順で B8G8R8X8 の 32bitカラー ) ColorBitDepth = 24( バイト順で B8G8R8 の 24bitカラー ) )(拡張版)

戻り値: System.IntPtr

※ 64bit環境では戻り値が int64 になります。ポインタサイズの値を返すため、変数は int64 型で受け取ってください。

関連項目

GetDesktopScreenGraphMemImageデスクトップ画面から指定領域の画像のメモリイメージの先頭アドレスとイメージの幅・高さ・ストライドを取得する( イメージのフォーマットは ColorBitDepth = 32( バイト順で B8G8R8X8 の 32bitカラー ) ColorBitDepth = 24( バイト順で B8G8R8 の 24bitカラー ) )(DxLibW)

情報

プラグイン / モジュールDxLibW
バージョン3.24f
作成日2026/04/12
著作者DxLib: Takumi Yamada / HSP binding: IronHSP Project
URLhttps://dxlib.xsrv.jp/
備考hspdxlib.as をインクルードして使用
タイプDxLib ゲームライブラリ
グループDxLib ウィンドウ
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\hspdxlib.hs