画像中の矩形領域を表すクラス
[詳解]
#include <FK/Image.h>
|
int | x |
| 領域左上の x 座標
|
|
int | y |
| 領域左上の y 座標
|
|
int | w |
| 領域の横幅
|
|
int | h |
| 領域の縦幅
|
|
画像中の矩形領域を表すクラス
このクラスは、画像中の矩形領域を表します。 このクラスの座標系は、画像の左上を原点とし、 x の正方向は右、y の正方向は下となります。
- 参照
- fk_Dimension, fk_Image
◆ fk_Rect() [1/2]
FK::fk_Rect::fk_Rect |
( |
int |
x = 0 , |
|
|
int |
y = 0 , |
|
|
int |
w = 0 , |
|
|
int |
h = 0 |
|
) |
| |
コンストラクタ
- 引数
-
[in] | x | 領域左上の x 座標 |
[in] | y | 領域左上の y 座標 |
[in] | w | 領域の横幅 |
[in] | h | 領域の縦幅 |
◆ fk_Rect() [2/2]
FK::fk_Rect::fk_Rect |
( |
const fk_Rect & |
| ) |
|
◆ set()
void FK::fk_Rect::set |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
領域設定関数
- 引数
-
[in] | x | 領域左上の x 座標 |
[in] | y | 領域左上の y 座標 |
[in] | w | 領域の横幅 |
[in] | h | 領域の縦幅 |
◆ setPos()
void FK::fk_Rect::setPos |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
領域位置設定関数
- 引数
-
[in] | x | 領域左上の x 座標 |
[in] | y | 領域左上の y 座標 |
◆ setSize()
void FK::fk_Rect::setSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
◆ getSize()