get_hsiT_get_hsiGetHsiGetHsiget_hsi (算子)
名称
get_hsiT_get_hsiGetHsiGetHsiget_hsi — 获取当前颜色的 HSI(Hue,Saturation,Intensity)编码。
签名
def get_hsi(window_handle: HHandle) -> Tuple[Sequence[int], Sequence[int], Sequence[int]]
描述
get_hsiget_hsiGetHsiGetHsiGetHsiget_hsi returns the output color or gray values, respectively, for
the window, described in HueHueHueHuehuehue, SaturationSaturationSaturationSaturationsaturationsaturation and
IntensityIntensityIntensityIntensityintensityintensity. The values returned by
get_hsiget_hsiGetHsiGetHsiGetHsiget_hsi can be set with set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi。
注意
The values returned by get_hsiget_hsiGetHsiGetHsiGetHsiget_hsi may be inaccurate due to
rounding errors. They do not necessarily match the values set with
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi exactly (colors are stored in RGB internally).
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
HueHueHueHuehuehue (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Hue (color value) of the current color.
SaturationSaturationSaturationSaturationsaturationsaturation (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Saturation of the current color.
IntensityIntensityIntensityIntensityintensityintensity (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Intensity of the current color.
结果
get_hsiget_hsiGetHsiGetHsiGetHsiget_hsi returns 2 (
H_MSG_TRUE)
, if the window is valid.否则将抛出异常。
可能的后继
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
另见
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_colorset_colorSetColorSetColorSetColorset_color,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
trans_to_rgbtrans_to_rgbTransToRgbTransToRgbTransToRgbtrans_to_rgb,
trans_from_rgbtrans_from_rgbTransFromRgbTransFromRgbTransFromRgbtrans_from_rgb
模块
基础