FineKernelToolKit 4.2.13
読み取り中…
検索中…
一致する文字列を見つけられません
公開メンバ関数 | 公開変数類 | 全メンバ一覧
FK::fk_Rect クラス

画像中の矩形領域を表すクラス [詳解]

#include <FK/Image.h>

公開メンバ関数

 fk_Rect (int x=0, int y=0, int w=0, int h=0)
 コンストラクタ
 
 fk_Rect (const fk_Rect &)
 コピーコンストラクタ
 
void set (int x, int y, int w, int h)
 領域設定関数
 
void setPos (int x, int y)
 領域位置設定関数
 
void setSize (int w, int h)
 領域サイズ設定関数
 
fk_Dimension getSize (void)
 領域サイズ参照関数
 

公開変数類

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 
)

領域サイズ設定関数

引数
[in]w領域の横幅
[in]h領域の縦幅

◆ getSize()

fk_Dimension FK::fk_Rect::getSize ( void  )

領域サイズ参照関数

戻り値
領域サイズ

メンバ詳解

◆ x

int FK::fk_Rect::x

領域左上の x 座標

◆ y

int FK::fk_Rect::y

領域左上の y 座標

◆ w

int FK::fk_Rect::w

領域の横幅

◆ h

int FK::fk_Rect::h

領域の縦幅