Skip to content

get_window_pointer3GetWindowPointer3GetWindowPointer3get_window_pointer3T_get_window_pointer3🔗

説明🔗

get_window_pointer3GetWindowPointer3GetWindowPointer3get_window_pointer3T_get_window_pointer3 — ウインドウのピクセルデータにアクセスする。

警告🔗

このオペレータはdev_open_windowで開かれたHDevelopのグラフィックスウィンドウでは動作しません。

書式🔗

get_window_pointer3( window WindowHandle, out integer ImageRed, out integer ImageGreen, out integer ImageBlue, out extent.x Width, out extent.y Height )void GetWindowPointer3( const HTuple& WindowHandle, HTuple* ImageRed, HTuple* ImageGreen, HTuple* ImageBlue, HTuple* Width, HTuple* Height )static void HOperatorSet.GetWindowPointer3( HTuple windowHandle, out HTuple imageRed, out HTuple imageGreen, out HTuple imageBlue, out HTuple width, out HTuple height )def get_window_pointer3( window_handle: HHandle ) -> Tuple[int, int, int, int, int]

Herror T_get_window_pointer3( const Htuple WindowHandle, Htuple* ImageRed, Htuple* ImageGreen, Htuple* ImageBlue, Htuple* Width, Htuple* Height )

void HWindow::GetWindowPointer3( Hlong* ImageRed, Hlong* ImageGreen, Hlong* ImageBlue, Hlong* Width, Hlong* Height ) const

void HWindow.GetWindowPointer3( out int imageRed, out int imageGreen, out int imageBlue, out int width, out int height )

説明🔗

get_window_pointer3GetWindowPointer3 は、(いくつかのウィンドウシステム内で) ビットマップ画像への直接のアクセスを可能にします。結果の値は、 ウィンドウサイズ (Widthwidthwidth, Heightheightheight) と 24-ビット ウィンドウに関するカラーオブジェクト (ImageRedimageRedimage_red, ImageGreenimageGreenimage_green, ImageBlueimageBlueimage_blue) 上の 3 つのポインタです。 C 言語においては、画像ポイントの型は unsigned char です。

注意🔗

get_window_pointer3GetWindowPointer3 は、ウィンドウ型 'pixmap'"pixmap" に対してのみ 使用可能です。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウハンドル

ImageRedimageRedimage_red (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

ピクセルデータの赤チャンネル上のポインタ

ImageGreenimageGreenimage_green (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

ピクセルデータの緑チャンネル上のポインタ

ImageBlueimageBlueimage_blue (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

ピクセルデータの青チャンネル上のポインタ

Widthwidthwidth (output_control) extent.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

画像ラインの長さ(画像の幅)

Heightheightheight (output_control) extent.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

画像ラインの数(画像の高さ)

結果🔗

型 'pixmap'"pixmap" のウィンドウが存在し、それが有効であるならば、 get_window_pointer3GetWindowPointer3 は、値 2 (H_MSG_TRUE) を返します。 必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_windowOpenWindow

関連項目

open_windowOpenWindow, set_window_typeSetWindowType

モジュール🔗

Foundation