get_partGetPartGetPartget_partT_get_part
Short description
get_partGetPartGetPartget_partT_get_part β Get the image part.
Signature
get_part( window WindowHandle, out rectangle.origin.y Row1, out rectangle.origin.x Column1, out rectangle.corner.y Row2, out rectangle.corner.x Column2 )void GetPart( const HTuple& WindowHandle, HTuple* Row1, HTuple* Column1, HTuple* Row2, HTuple* Column2 )static void HOperatorSet.GetPart( HTuple windowHandle, out HTuple row1, out HTuple column1, out HTuple row2, out HTuple column2 )def get_part( window_handle: HHandle ) -> Tuple[Union[int, float], Union[int, float], Union[int, float], Union[int, float]]
Herror T_get_part( 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
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 )
Description
get_partGetPart returns the upper left and lower right corner
of the image part shown in the window. The image part can be
changed with the operator set_partSetPart (Default is the
whole image).
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters
WindowHandlewindowHandlewindow_handle (input_control) window β (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)
Window handle.
Row1row1row_1 (output_control) rectangle.origin.y β (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
Row index of the image partβs upper left corner.
Column1column1column_1 (output_control) rectangle.origin.x β (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
Column index of the image partβs upper left corner.
Row2row2row_2 (output_control) rectangle.corner.y β (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
Row index of the image partβs lower right corner.
Column2column2column_2 (output_control) rectangle.corner.x β (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
Column index of the image partβs lower right corner.
Result
get_partGetPart returns 2 (H_MSG_TRUE) if the window is valid.
Otherwise an exception is raised.
Combinations with other operators
Combinations
Possible successors
set_partSetPart, disp_regionDispRegion, disp_imageDispImage
See also
set_partSetPart, disp_imageDispImage, disp_regionDispRegion, disp_colorDispColor
Module
Foundation