disp_rectangle1DispRectangle1DispRectangle1disp_rectangle1T_disp_rectangle1
説明
disp_rectangle1DispRectangle1DispRectangle1disp_rectangle1T_disp_rectangle1 — 座標軸に平行な短形を表示する。
書式
disp_rectangle1( window WindowHandle, rectangle.origin.y Row1, rectangle.origin.x Column1, rectangle.corner.y Row2, rectangle.corner.x Column2 )void DispRectangle1( const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2 )static void HOperatorSet.DispRectangle1( HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2 )def disp_rectangle1( window_handle: HHandle, row_1: MaybeSequence[Union[int, float]], column_1: MaybeSequence[Union[int, float]], row_2: MaybeSequence[Union[int, float]], column_2: MaybeSequence[Union[int, float]] ) -> None
Herror T_disp_rectangle1( const Htuple WindowHandle, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2 )
void HWindow::DispRectangle1( const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2 ) const
void HWindow::DispRectangle1( double Row1, double Column1, double Row2, double Column2 ) const
void HWindow.DispRectangle1( HTuple row1, HTuple column1, HTuple row2, HTuple column2 )
void HWindow.DispRectangle1( double row1, double column1, double row2, double column2 )
説明
disp_rectangle1DispRectangle1 は出力ウインドウに 1 つまたは複数の矩形を表示
します。矩形は左上角 (Row1row1row_1,Column1column1column_1) と右下角
(Row2row2row_2,Column2column2column_2) によって記述されます。もし与えられた座標が
ウインドウの境界内にない場合、矩形は適切にクリッピングされます。領域の表示を
制御するために使用されるオペレーター(例えば、set_colorSetColor,
set_graySetGray, set_drawSetDraw, set_line_widthSetLineWidth)は矩形の表示のためにも
使用することができます。tupleパラメーターを用いて、1 回の呼び出しで
複数の矩形を描くこともできます。
実行情報
実行情報
パラメーター
WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)
ウインドウハンドル
Row1row1row_1 (input_control) rectangle.origin.y(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
左上角の行座標
初期値: 1616
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ Row1 ≤ 511 (lin)
最小増分: 1
推奨増分: 10
Column1column1column_1 (input_control) rectangle.origin.x(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
左上角の列座標
初期値: 1616
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ Column1 ≤ 511 (lin)
最小増分: 1
推奨増分: 10
Row2row2row_2 (input_control) rectangle.corner.y(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
右下角の行座標
初期値: 4848
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ Row2 ≤ 511 (lin)
最小増分: 1
推奨増分: 10
制限: Row2 >= Row1
Column2column2column_2 (input_control) rectangle.corner.x(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
右下角の列座標
初期値: 8080
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ Column2 ≤ 511 (lin)
最小増分: 1
推奨増分: 10
制限: Column2 >= Column1
例
(HDevelop)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)
結果
disp_rectangle1DispRectangle1 は値 2 (H_MSG_TRUE) を返します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
open_windowOpenWindow, set_rgbSetRgb, set_lutSetLut, set_hsiSetHsi, set_drawSetDraw, set_colorSetColor, set_coloredSetColored, set_line_widthSetLineWidth
他の選択候補
disp_rectangle2DispRectangle2, gen_rectangle1GenRectangle1, disp_regionDispRegion, disp_lineDispLine, set_shapeSetShape
関連項目
open_windowOpenWindow, set_colorSetColor, set_drawSetDraw, set_line_widthSetLineWidth
モジュール
Foundation