ClassesClasses | | Operators

write_lutT_write_lutWriteLutWriteLut (Operator)

Name

write_lutT_write_lutWriteLutWriteLut — Write look-up-table (lut) as file.

Warning

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

Signature

write_lut( : : WindowHandle, FileName : )

Herror T_write_lut(const Htuple WindowHandle, const Htuple FileName)

void WriteLut(const HTuple& WindowHandle, const HTuple& FileName)

void HWindow::WriteLut(const HString& FileName) const

void HWindow::WriteLut(const char* FileName) const

static void HOperatorSet.WriteLut(HTuple windowHandle, HTuple fileName)

void HWindow.WriteLut(string fileName)

Description

write_lutwrite_lutWriteLutWriteLutWriteLut saves the look-up-table (resp. the part of it that is relevant for displaying image gray values) of the valid output window into a file named 'FileNameFileNameFileNameFileNamefileName.lut'. It can be read again later with set_lutset_lutSetLutSetLutSetLut.

Attention

write_lutwrite_lutWriteLutWriteLutWriteLut is only suitable for systems using 256 colors.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.write HTupleHTupleHtuple (string) (string) (HString) (char*)

File name (of file containing the look-up-table).

Default value: '/tmp/lut' "/tmp/lut" "/tmp/lut" "/tmp/lut" "/tmp/lut"

File extension: .lut

Result

write_lutwrite_lutWriteLutWriteLutWriteLut returns 2 (H_MSG_TRUE) if the window with the required properties (256 colors) is valid and the parameter (file name) is correct. Otherwise an exception is raised.

Possible Predecessors

set_lutset_lutSetLutSetLutSetLut

See also

set_lutset_lutSetLutSetLutSetLut, set_pixelset_pixelSetPixelSetPixelSetPixel, get_pixelget_pixelGetPixelGetPixelGetPixel

Module

Foundation


ClassesClasses | | Operators