Herror ::get_pixel (
    const HTuple &WindowHandle,
    HTuple *Pixel
)
HTuple HWindow::GetPixel (
    
) const

Get the current color lookup table index.

::get_pixel returns the internal coding of the output grayvalue or color, respectively, for the window. If the output mode is set to color(s) or grayvalue(s) (see ::set_color or ::set_gray), then the color- or grayvalues are transformed for internal use. The internal code is then used for (physical) screen display. The transformation depends on the mapping characteristics and the condition of the output device and can be different in different program runs. Don't confuse the term "pixel" with the term "pixel" in image processing (the other procedure is ::get_grayval). Here a pixel is meant to be the color loookup table index.

With ::get_pixel it is possible to save the output mode without knowing whether colors or grayvalues are used. Pixel is set with the procedure ::set_pixel.


Parameters

WindowHandle (input_control)
window -> HTuple.long
Window_id.

Pixel (output_control)
string-array -> HTuple.long *
Index of the current color loopup table.


Result

::get_part_style returns H_MSG_TRUE if the window is valid. Otherwise an exception handling is raised.


Possible Successors

::set_pixel, ::disp_region, ::disp_image


See also

::set_pixel, ::set_fix


Module

System



Copyright © 1996-2002 MVTec Software GmbH