set_part_styleT_set_part_styleSetPartStyleSetPartStyleset_part_style (算子)
名称
set_part_styleT_set_part_styleSetPartStyleSetPartStyleset_part_style — 定义灰度值输出的插值方法。
签名
描述
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 (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
StyleStyleStyleStylestylestyle (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Interpolation method for image output:
0 (fast, low quality) to 2 (slow, high quality).
默认值:
0
值列表:
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.否则将抛出异常。
可能的前趋
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
模块
基础