Skip to content

set_part_styleSetPartStyleSetPartStyleset_part_styleT_set_part_style🔗

Short description🔗

set_part_styleSetPartStyleSetPartStyleset_part_styleT_set_part_style — Define an interpolation method for gray value output.

Signature🔗

set_part_style( window WindowHandle, integer Style )void SetPartStyle( const HTuple& WindowHandle, const HTuple& Style )static void HOperatorSet.SetPartStyle( HTuple windowHandle, HTuple style )def set_part_style( window_handle: HHandle, style: int ) -> None

Herror T_set_part_style( const Htuple WindowHandle, const Htuple Style )

void HWindow::SetPartStyle( Hlong Style ) const

void HWindow.SetPartStyle( int style )

Description🔗

set_part_styleSetPartStyle defines the interpolation method to zoom an image part which is displayed in the window. Interpolation takes place, if the output window has different size than the image to display (e.g., after a call to set_partSetPart or a window resize). Three modes are supported:

  • 0 no interpolation (low quality, very fast).

  • 1 unweighted interpolation (medium quality and run time)

  • 2 weighted interpolation (high quality, slow)

The current value can be queried with get_part_styleGetPartStyle.

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.

Stylestylestyle (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Interpolation method for image output: 0 (fast, low quality) to 2 (slow, high quality).

Default: 00
List of values: 0, 1, 20, 1, 2

Result🔗

set_part_styleSetPartStyle returns 2 (H_MSG_TRUE) if the parameter is correct and the window is valid. Otherwise an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

get_part_styleGetPartStyle

Possible successors

set_partSetPart, disp_imageDispImage, disp_regionDispRegion

Alternatives

affine_trans_imageAffineTransImage

See also

get_part_styleGetPartStyle, set_partSetPart, disp_imageDispImage, disp_colorDispColor

Module🔗

Foundation