get_pixelT_get_pixelGetPixelGetPixelget_pixel (算子)

名称

get_pixelT_get_pixelGetPixelGetPixelget_pixel — 获取当前颜色查找表索引。

警告

get_pixelget_pixelGetPixelGetPixelGetPixelget_pixel 已过时,仅出于向后兼容性考虑而保留。

签名

get_pixel( : : WindowHandle : Pixel)

Herror T_get_pixel(const Htuple WindowHandle, Htuple* Pixel)

void GetPixel(const HTuple& WindowHandle, HTuple* Pixel)

HTuple HWindow::GetPixel() const

static void HOperatorSet.GetPixel(HTuple windowHandle, out HTuple pixel)

HTuple HWindow.GetPixel()

def get_pixel(window_handle: HHandle) -> Sequence[int]

描述

get_pixelget_pixelGetPixelGetPixelGetPixelget_pixel 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_colorset_colorSetColorSetColorSetColorset_color or set_grayset_graySetGraySetGraySetGrayset_gray), 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_grayvalget_grayvalGetGrayvalGetGrayvalGetGrayvalget_grayval). Here a pixel is meant to be the color lookup table index.

With get_pixelget_pixelGetPixelGetPixelGetPixelget_pixel it is possible to save the output mode without knowing whether colors or gray values are used. PixelPixelPixelPixelpixelpixel is set with the operator set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

PixelPixelPixelPixelpixelpixel (输出控制)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Index of the current color look-up table.

结果

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyleget_part_style returns 2 ( H_MSG_TRUE) if the window is valid.否则将抛出异常。

可能的后继

set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

另见

set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel

模块

基础