Query of the current color lookup table index.
get_pixel returns the internal coding of the output greyvalue resp. color for the active window. If the output mode is set to color(s) or greyvalue(s) (see set_color or set_grey), then the color- or greyvalues 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 (that's what the procedure get_greyval__ is for). 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 greyvalues are used. Pixel is set with the procedure set_pixel.
Pixel (output_control) |
string-array -> integer |
index of the current color loopup table. |
get_part_style returns TRUE, if a window is active. Otherwise an exception is raised.
set_pixel, disp_region, disp_image