set_part_styleT_set_part_styleSetPartStyleSetPartStyleset_part_style (算子名称)

名称

set_part_styleT_set_part_styleSetPartStyleSetPartStyleset_part_style — Define an interpolation method for gray value output.

参数签名

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)

def set_part_style(window_handle: HHandle, style: int) -> None

描述

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style 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_partSetPartSetPartSetPartset_part 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_styleGetPartStyleGetPartStyleGetPartStyleget_part_style.

运行信息

参数表

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

Window handle.

StyleStyleStyleStylestylestyle (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

Default: 0

List of values: 0, 1, 2

结果

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

可能的前置算子

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyleget_part_style

可能的后置算子

set_partset_partSetPartSetPartSetPartset_part, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

可替代算子

affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image

参考其它

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyleget_part_style, set_partset_partSetPartSetPartSetPartset_part, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_colordisp_colorDispColorDispColorDispColordisp_color

模块

Foundation