get_window_pointer3π
Short descriptionπ
get_window_pointer3 β Access to a windowβs pixel data.
Warningπ
This operator does not work in an HDevelop graphics window opened with
dev_open_window.
Signatureπ
get_window_pointer3( window WindowHandle, out integer ImageRed, out integer ImageGreen, out integer ImageBlue, out extent.x Width, out extent.y Height )
Descriptionπ
get_window_pointer3 enables (in some window systems) the
direct access to the bitmap. Result values are the three pointers on the
color extracts of a 24-bit window (ImageRed, ImageGreen,
ImageBlue), as well as the window size (Width,
Height).
In the language C the type of the image points is unsigned char.
Attentionπ
get_window_pointer3 is usable only for window type
'pixmap'.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
WindowHandle (input_control) window β (handle)
Window handle.
ImageRed (output_control) integer β (integer)
Pointer on red channel of pixel data.
ImageGreen (output_control) integer β (integer)
Pointer on green channel of pixel data.
ImageBlue (output_control) integer β (integer)
Pointer on blue channel of pixel data.
Width (output_control) extent.x β (integer)
Length of an image line.
Height (output_control) extent.y β (integer)
Number of image lines.
Resultπ
If a window of type 'pixmap' exists and it is valid
get_window_pointer3 returns 2 (H_MSG_TRUE).
If necessary an exception is raised.
Combinations with other operatorsπ
Moduleπ
Foundation