get_part_styleT_get_part_styleGetPartStyleGetPartStyle (Operator)

Name

get_part_styleT_get_part_styleGetPartStyleGetPartStyle — Get the current interpolation mode for gray value display.

Signature

get_part_style( : : WindowHandle : Style)

Herror T_get_part_style(const Htuple WindowHandle, Htuple* Style)

void GetPartStyle(const HTuple& WindowHandle, HTuple* Style)

Hlong HWindow::GetPartStyle() const

static void HOperatorSet.GetPartStyle(HTuple windowHandle, out HTuple style)

int HWindow.GetPartStyle()

Description

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyle returns the interpolation mode used for displaying an image part in the window. An interpolation takes place if the output window is larger than the image format or the image output format (see set_partset_partSetPartSetPartSetPart). HALCON supports three interpolation modes:

0

no interpolation (low quality, very fast).

1

unweighted interpolation (average quality and computation time)

2

weighted interpolation (high quality, slow)

The current mode can be changed with set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle.

Execution Information

Parameters

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

Window handle.

StyleStyleStyleStylestyle (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

List of values: 0, 1, 2

Result

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyle returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Possible Successors

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle, disp_regiondisp_regionDispRegionDispRegionDispRegion, disp_imagedisp_imageDispImageDispImageDispImage

See also

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle, set_partset_partSetPartSetPartSetPart, disp_imagedisp_imageDispImageDispImageDispImage, disp_colordisp_colorDispColorDispColorDispColor

Module

Foundation