write_lutT_write_lutWriteLutWriteLutwrite_lut (Operator)

Name

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

Warning

write_lutwrite_lutWriteLutWriteLutWriteLutwrite_lut 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

void HWindow::WriteLut(const wchar_t* FileName) const   (Windows only)

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

void HWindow.WriteLut(string fileName)

def write_lut(window_handle: HHandle, file_name: str) -> None

Description

write_lutwrite_lutWriteLutWriteLutWriteLutwrite_lut 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 'FileNameFileNameFileNameFileNamefileNamefile_name.lut'. It can be read again later with set_lutset_lutSetLutSetLutSetLutset_lut.

Attention

write_lutwrite_lutWriteLutWriteLutWriteLutwrite_lut is only suitable for systems using 256 colors.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (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" "/tmp/lut"

File extension: .lut

Result

write_lutwrite_lutWriteLutWriteLutWriteLutwrite_lut returns 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_lutSetLutSetLutSetLutset_lut

See also

set_lutset_lutSetLutSetLutSetLutset_lut, set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel, get_pixelget_pixelGetPixelGetPixelGetPixelget_pixel

Module

Foundation