set_lut_styleT_set_lut_styleSetLutStyleSetLutStyle (Operator)
Name
set_lut_styleT_set_lut_styleSetLutStyleSetLutStyle
— Changing the look-up-table (lut).
Warning
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle
is obsolete and is only provided for
reasons of backward compatibility.
Signature
Description
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle
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 changement: Hue = 0.0
Complement colors: Hue = 0.5
- Saturation:
Changement of saturation,
No changement: Saturation = 1.0
Gray value image: Saturation = 0.0
- Intensity:
Changement of intensity,
No changement: Intensity = 1.0
Black image: Intensity = 0.0
Changement affects only the part of an look-up-table that is used for
diplaying images. The parameter of modification remain until the next
call of set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle
. Calling set_lutset_lutSetLutSetLutSetLut
has got no
effect on these parameters.
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
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle
(input_control) window →
HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
HueHueHueHuehue
(input_control) real →
HTupleHTupleHtuple (real) (double) (double) (double)
Modification of color value.
Default value: 0.0
Typical range of values: 0.0
≤
Hue
Hue
Hue
Hue
hue
≤
1.0
Restriction: 0.0 >= Hue && Hue <= 1.0
SaturationSaturationSaturationSaturationsaturation
(input_control) real →
HTupleHTupleHtuple (real) (double) (double) (double)
Modification of saturation.
Default value: 1.5
Typical range of values: 0.0
≤
Saturation
Saturation
Saturation
Saturation
saturation
Restriction: 0.0 <= Saturation
IntensityIntensityIntensityIntensityintensity
(input_control) real →
HTupleHTupleHtuple (real) (double) (double) (double)
Modification of intensity.
Default value: 1.5
Typical range of values: 0.0
≤
Intensity
Intensity
Intensity
Intensity
intensity
Restriction: 0.0 <= Intensity
Example (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)
Example (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);
Example (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)
Example (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)
Example (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)
Result
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle
returns 2 (H_MSG_TRUE) if the window is valid and the parameter
is correct. Otherwise an exception is raised.
Possible Predecessors
get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyle
Possible Successors
set_lutset_lutSetLutSetLutSetLut
Alternatives
set_lutset_lutSetLutSetLutSetLut
,
scale_imagescale_imageScaleImageScaleImageScaleImage
See also
get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyle
Module
Foundation