Skip to content

write_lutWriteLutWriteLutwrite_lutT_write_lut🔗

Short description🔗

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

Warning🔗

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

Signature🔗

write_lut( window WindowHandle, filename.write FileName )void WriteLut( const HTuple& WindowHandle, const HTuple& FileName )static void HOperatorSet.WriteLut( HTuple windowHandle, HTuple fileName )def write_lut( window_handle: HHandle, file_name: str ) -> None

Herror T_write_lut( 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)

void HWindow.WriteLut( string fileName )

Description🔗

write_lutWriteLut 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 ‘FileNamefileNamefile_name.lut’. It can be read again later with set_lutSetLut.

Attention🔗

write_lutWriteLut is only suitable for systems using 256 colors.

Execution information🔗

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🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

FileNamefileNamefile_name (input_control) filename.write → (string)HTuple (HString)HTuple (string)strHtuple (char*)

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

Default: '/tmp/lut'"/tmp/lut"
File extension: .lut

Result🔗

write_lutWriteLut 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.

Combinations with other operators🔗

Combinations

Possible predecessors

set_lutSetLut

See also

set_lutSetLut, set_pixelSetPixel, get_pixelGetPixel

Module🔗

Foundation