get_partGetPartGetPartget_partT_get_part
説明
get_partGetPartGetPartget_partT_get_part — 画像の表示箇所を得る。
書式
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 )
説明
get_partGetPart は、ウインドウ内に表示された画像の表示
部分について、左上と右下隅座標を返します。画像の表示部分は、
オペレーター set_partSetPart で変更することができます。
(デフォルトは画像サイズです。)
実行情報
実行情報
パラメーター
WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)
ウインドウハンドル
Row1row1row_1 (output_control) rectangle.origin.y → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
画像の表示部分の左上隅の行座標
Column1column1column_1 (output_control) rectangle.origin.x → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
画像の表示部分の左上隅の列座標
Row2row2row_2 (output_control) rectangle.corner.y → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
画像の表示部分の右下隅の行座標
Column2column2column_2 (output_control) rectangle.corner.x → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)Union[int, float]Htuple (Hlong / double)
画像の表示部分の右下隅の列座標
結果
ウインドウが有効な場合、get_partGetPart は 2 (H_MSG_TRUE) を返します。
それ以外の場合には例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
set_partSetPart, disp_regionDispRegion, disp_imageDispImage
関連項目
set_partSetPart, disp_imageDispImage, disp_regionDispRegion, disp_colorDispColor
モジュール
Foundation