ClassesClasses | | Operators

set_part_styleT_set_part_styleSetPartStyleSetPartStyle (Operator)

Name

set_part_styleT_set_part_styleSetPartStyleSetPartStyle — Define an interpolation method for gray value output.

Signature

set_part_style( : : WindowHandle, Style : )

Herror T_set_part_style(const Htuple WindowHandle, const Htuple Style)

void SetPartStyle(const HTuple& WindowHandle, const HTuple& Style)

void HWindow::SetPartStyle(Hlong Style) const

static void HOperatorSet.SetPartStyle(HTuple windowHandle, HTuple style)

void HWindow.SetPartStyle(int style)

Description

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle 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_partset_partSetPartSetPartSetPart 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_styleget_part_styleGetPartStyleGetPartStyleGetPartStyle.

Execution Information

Parameters

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

Window handle.

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

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

Default value: 0

List of values: 0, 1, 2

Result

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

Possible Predecessors

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyle

Possible Successors

set_partset_partSetPartSetPartSetPart, disp_imagedisp_imageDispImageDispImageDispImage, disp_regiondisp_regionDispRegionDispRegionDispRegion

Alternatives

affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImage

See also

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyle, set_partset_partSetPartSetPartSetPart, disp_imagedisp_imageDispImageDispImageDispImage, disp_colordisp_colorDispColorDispColorDispColor

Module

Foundation


ClassesClasses | | Operators