get_partT_get_partGetPartGetPartget_part (算子名称)
名称
get_partT_get_partGetPartGetPartget_part — Get the image part.
参数签名
void GetPart(const HTuple& WindowHandle, HTuple* Row1, HTuple* Column1, HTuple* Row2, HTuple* Column2)
void HWindow::GetPart(HTuple* Row1, HTuple* Column1, HTuple* Row2, HTuple* Column2) const
void HWindow::GetPart(Hlong* Row1, Hlong* Column1, Hlong* Row2, Hlong* Column2) const
static void HOperatorSet.GetPart(HTuple windowHandle, out HTuple row1, out HTuple column1, out HTuple row2, out HTuple column2)
void HWindow.GetPart(out HTuple row1, out HTuple column1, out HTuple row2, out HTuple column2)
void HWindow.GetPart(out int row1, out int column1, out int row2, out int column2)
def get_part(window_handle: HHandle) -> Tuple[Union[int, float], Union[int, float], Union[int, float], Union[int, float]]
描述
get_partget_partGetPartGetPartGetPartget_part returns the upper left and lower right corner
of the image part shown in the window. The image part can be
changed with 该算子 set_partset_partSetPartSetPartSetPartset_part (Default is the
whole image).
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
Row1Row1Row1Row1row1row_1 (output_control) rectangle.origin.y → HTupleUnion[int, float]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)
Row index of the image part's upper left corner.
Column1Column1Column1Column1column1column_1 (output_control) rectangle.origin.x → HTupleUnion[int, float]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)
Column index of the image part's upper left corner.
Row2Row2Row2Row2row2row_2 (output_control) rectangle.corner.y → HTupleUnion[int, float]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)
Row index of the image part's lower right corner.
Column2Column2Column2Column2column2column_2 (output_control) rectangle.corner.x → HTupleUnion[int, float]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)
Column index of the image part's lower right corner.
结果
get_partget_partGetPartGetPartGetPartget_part returns 2 (
H_MSG_TRUE)
if the window is valid.
Otherwise an exception is raised.
可能的后置算子
set_partset_partSetPartSetPartSetPartset_part,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
参考其它
set_partset_partSetPartSetPartSetPartset_part,
disp_imagedisp_imageDispImageDispImageDispImagedisp_image,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
disp_colordisp_colorDispColorDispColorDispColordisp_color
模块
Foundation