set_window_extentsT_set_window_extentsSetWindowExtentsSetWindowExtentsset_window_extents (算子)

名称

set_window_extentsT_set_window_extentsSetWindowExtentsSetWindowExtentsset_window_extents — 修改窗口的位置和大小。

签名

set_window_extents( : : WindowHandle, Row, Column, Width, Height : )

Herror T_set_window_extents(const Htuple WindowHandle, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void SetWindowExtents(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

void HWindow::SetWindowExtents(Hlong Row, Hlong Column, Hlong Width, Hlong Height) const

static void HOperatorSet.SetWindowExtents(HTuple windowHandle, HTuple row, HTuple column, HTuple width, HTuple height)

void HWindow.SetWindowExtents(int row, int column, int width, int height)

def set_window_extents(window_handle: HHandle, row: int, column: int, width: int, height: int) -> None

描述

set_window_extentsset_window_extentsSetWindowExtentsSetWindowExtentsSetWindowExtentsset_window_extents positions the upper left corner of the output window at (RowRowRowRowrowrow,ColumnColumnColumnColumncolumncolumn) and changes the size of the window to WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight at the same time. Negative values for WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight are ignored.

Adapting the size of the window to the size of the image part to be displayed will prevent slowing down the display due to necessary interpolations. Thus, the window preferably has the same size as the image part to be displayed, or otherwise half its size, quarter its size, etc.

注意

Modifying the size of the window does not automatically redraw the window contents. This has to be done by the program by redisplaying the desired data.

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

RowRowRowRowrowrow (输入控制)  rectangle.origin.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of upper left corner in target position.

默认值: 0

值范围: Row Row Row Row row row (lin)

最小增量: 1

建议增量: 1

ColumnColumnColumnColumncolumncolumn (输入控制)  rectangle.origin.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of upper left corner in target position.

默认值: 0

值范围: Column Column Column Column column column (lin)

最小增量: 1

建议增量: 1

WidthWidthWidthWidthwidthwidth (输入控制)  rectangle.extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the window.

默认值: 512

值范围: Width Width Width Width width width (lin)

最小增量: 1

建议增量: 1

HeightHeightHeightHeightheightheight (输入控制)  rectangle.extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the window.

默认值: 512

值范围: Height Height Height Height height height (lin)

最小增量: 1

建议增量: 1

结果

If the window is valid and the parameters are correct set_window_extentsset_window_extentsSetWindowExtentsSetWindowExtentsSetWindowExtentsset_window_extents 返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

另见

get_window_extentsget_window_extentsGetWindowExtentsGetWindowExtentsGetWindowExtentsget_window_extents, open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

模块

基础