set_lut_styleT_set_lut_styleSetLutStyleSetLutStyleset_lut_style (算子名称)
名称
set_lut_styleT_set_lut_styleSetLutStyleSetLutStyleset_lut_style — Changing the look-up-table (lut).
警告
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style is obsolete and is only provided for
reasons of backward compatibility.
参数签名
描述
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style changes the look-up-table (lut) of the device
displaying the valid output window. It has got three parameters:
- Hue:
Rotation of color space,
Hue = 1.9 conforms to a one-time rotation of the
color space.
No changes: Hue = 0.0
Complement colors: Hue = 0.5
- Saturation:
Changes of saturation,
No changes: Saturation = 1.0
Gray value image: Saturation = 0.0
- Intensity:
Changes of intensity,
No changes: Intensity = 1.0
Black image: Intensity = 0.0
Changes affect only the part of an look-up-table that is used for
displaying images. The parameter of modification remain until the next
call of set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style. Calling set_lutset_lutSetLutSetLutSetLutset_lut has got no
effect on these parameters.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
HueHueHueHuehuehue (input_control) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Modification of color value.
Default:
0.0
Value range:
0.0
≤
Hue
Hue
Hue
Hue
hue
hue
≤
1.0
SaturationSaturationSaturationSaturationsaturationsaturation (input_control) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Modification of saturation.
Default:
1.5
Value range:
0.0
≤
Saturation
Saturation
Saturation
Saturation
saturation
saturation
IntensityIntensityIntensityIntensityintensityintensity (input_control) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Modification of intensity.
Default:
1.5
Value range:
0.0
≤
Intensity
Intensity
Intensity
Intensity
intensity
intensity
例程 (HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
例程 (C)
read_image(&Image,"monkey");
set_lut(WindowHandle,"color1");
do{
get_mbutton(WindowHandle,&Row,&Column,&Button);
Saturation= Row/300.0;
Hue = Column/512.0;
set_lut_style(WindowHandle,Hue,Saturation,1.0);
disp_image(Image);
}
while(Button != 4);
例程 (HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
例程 (HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
例程 (HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
结果
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style returns 2 (
H_MSG_TRUE)
if the window is valid and the parameter
is correct. Otherwise an exception is raised.
可能的前置算子
get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyleget_lut_style
可能的后置算子
set_lutset_lutSetLutSetLutSetLutset_lut
可替代算子
set_lutset_lutSetLutSetLutSetLutset_lut,
scale_imagescale_imageScaleImageScaleImageScaleImagescale_image
参考其它
get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyleget_lut_style
模块
Foundation