ClassesClassesClassesClasses | | | | Operators

draw_lutdraw_lutDrawLutdraw_lutDrawLutDrawLut (Operator)

Name

draw_lutdraw_lutDrawLutdraw_lutDrawLutDrawLut — Manipulate look-up-table (lut) interactively.

Warning

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

Signature

draw_lut( : : WindowHandle : )

Herror draw_lut(const Hlong WindowHandle)

Herror T_draw_lut(const Htuple WindowHandle)

Herror draw_lut(const HTuple& WindowHandle)

void HWindow::DrawLut() const

void DrawLut(const HTuple& WindowHandle)

void HWindow::DrawLut() const

void HOperatorSetX.DrawLut([in] VARIANT WindowHandle)

void HWindowX.DrawLut()

static void HOperatorSet.DrawLut(HTuple windowHandle)

void HWindow.DrawLut()

Description

draw_lutdraw_lutDrawLutdraw_lutDrawLutDrawLut allows interactive manipulation of the look-up-table of the device currently displaying the output window.

By pressing and holding down the left mouse button one can change (from “left to right”) the red-, green- and blue-intensity displayed in a 2 dimensional diagram with the gray values on the x-axis. The left mouse button also is used for choosing the color channel that should be changed. As an alternative, one can map pure gray levels (gray “color channel”) to the gray values on the x-axis. The right mouse button is used for terminating the change-process. The modified look-up-table can be saved by write_lutwrite_lutWriteLutwrite_lutWriteLutWriteLut and reloaded later by set_lutset_lutSetLutset_lutSetLutSetLut. get_lutget_lutGetLutget_lutGetLutGetLut succeeding draw_lutdraw_lutDrawLutdraw_lutDrawLutDrawLut returns directly the RGB tuple of the look-up-table. These are suitable as input of set_lutset_lutSetLutset_lutSetLutSetLut.

Attention

draw_lutdraw_lutDrawLutdraw_lutDrawLutDrawLut is only suitable for displays with a color depth of 8 bits. Furthermore, it can only be used on hardware supporting look-up-tables for the output and allowing dynamic changes of the tables.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window identifier.

Example (HDevelop)

read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
draw_lut(WindowHandle)
write_lut(WindowHandle,'my_lut')
* ...
read_image(Image,'fabrik')
set_lut(WindowHandle,'my_lut')

Example (C)

read_image(&Image,"fabrik") ;
disp_image(Image,WindowHandle) ;
draw_lut(WindowHandle) ;
write_lut(WindowHandle,"my_lut") ;
/* ... */
read_image(&Image,"fabrik") ;
set_lut(WindowHandle,"my_lut") ;

Example (HDevelop)

read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
draw_lut(WindowHandle)
write_lut(WindowHandle,'my_lut')
* ...
read_image(Image,'fabrik')
set_lut(WindowHandle,'my_lut')

Example (HDevelop)

read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
draw_lut(WindowHandle)
write_lut(WindowHandle,'my_lut')
* ...
read_image(Image,'fabrik')
set_lut(WindowHandle,'my_lut')

Example (HDevelop)

read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
draw_lut(WindowHandle)
write_lut(WindowHandle,'my_lut')
* ...
read_image(Image,'fabrik')
set_lut(WindowHandle,'my_lut')

Example (HDevelop)

read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
draw_lut(WindowHandle)
write_lut(WindowHandle,'my_lut')
* ...
read_image(Image,'fabrik')
set_lut(WindowHandle,'my_lut')

Result

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

Possible Successors

set_lut_styleset_lut_styleSetLutStyleset_lut_styleSetLutStyleSetLutStyle, set_lutset_lutSetLutset_lutSetLutSetLut, write_lutwrite_lutWriteLutwrite_lutWriteLutWriteLut, disp_lutdisp_lutDispLutdisp_lutDispLutDispLut

Alternatives

set_fixset_fixSetFixset_fixSetFixSetFix, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb

See also

write_lutwrite_lutWriteLutwrite_lutWriteLutWriteLut, set_lutset_lutSetLutset_lutSetLutSetLut, get_lutget_lutGetLutget_lutGetLutGetLut, disp_lutdisp_lutDispLutdisp_lutDispLutDispLut

Module

Foundation


ClassesClassesClassesClasses | | | | Operators