Skip to content

get_pixelGetPixelGetPixelget_pixelT_get_pixelπŸ”—

Short descriptionπŸ”—

get_pixelGetPixelGetPixelget_pixelT_get_pixel β€” Get the current color lookup table index.

WarningπŸ”—

get_pixelGetPixel is obsolete and is only provided for reasons of backward compatibility.

SignatureπŸ”—

get_pixel( window WindowHandle, out integer Pixel )void GetPixel( const HTuple& WindowHandle, HTuple* Pixel )static void HOperatorSet.GetPixel( HTuple windowHandle, out HTuple pixel )def get_pixel( window_handle: HHandle ) -> Sequence[int]

Herror T_get_pixel( const Htuple WindowHandle, Htuple* Pixel )

HTuple HWindow::GetPixel( ) const

HTuple HWindow.GetPixel( )

DescriptionπŸ”—

get_pixelGetPixel returns the internal coding of the output gray value or color, respectively, for the window. If the output mode is set to color(s) or gray value(s) (see set_colorSetColor or set_graySetGray), then the color- or gray values 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 operator is get_grayvalGetGrayval). Here a pixel is meant to be the color lookup table index.

With get_pixelGetPixel it is possible to save the output mode without knowing whether colors or gray values are used. Pixelpixelpixel is set with the operator set_pixelSetPixel.

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πŸ”—

WindowHandlewindowHandlewindow_handle (input_control) window β†’ (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Pixelpixelpixel (output_control) integer-array β†’ (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Index of the current color look-up table.

ResultπŸ”—

get_part_styleGetPartStyle returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Combinations with other operatorsπŸ”—

Combinations

Possible successors

set_pixelSetPixel, disp_regionDispRegion, disp_imageDispImage

See also

set_pixelSetPixel

ModuleπŸ”—

Foundation