Operator Reference

write_lutT_write_lutWriteLutWriteLutwrite_lut (Operator)

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

Warning

write_lutwrite_lutWriteLutWriteLutwrite_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_lutWriteLutWriteLutwrite_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 'FileNameFileNameFileNamefileNamefile_name.lut'. It can be read again later with set_lutset_lutSetLutSetLutset_lut.

Attention

write_lutwrite_lutWriteLutWriteLutwrite_lut is only suitable for systems using 256 colors.

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

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

Window handle.

FileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

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

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

File extension: .lut

Result

write_lutwrite_lutWriteLutWriteLutwrite_lut 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_lutSetLutSetLutset_lut

See also

set_lutset_lutSetLutSetLutset_lut, set_pixelset_pixelSetPixelSetPixelset_pixel, get_pixelget_pixelGetPixelGetPixelget_pixel

Module

Foundation