get_window_pointer3 ( : : : ImageRed, ImageGreen, ImageBlue, Width, Height )

Access to a window's pixel data.

get_window_pointer3 enables (in some window systems) the direct access to the bitmap. Resulting 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 has been realised only for window type 'pixmap'.


Parameters

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 if it is activated, then get_window_pointer3 returns TRUE. If necessary an exception is raised.


Possible Predecessors

open_window, open_textwindow, set_window


Alternatives

dump_lwindow


See also

open_window, set_window_type



Copyright © 1996-1997 MVTec Software GmbH