MENOU SDK MENOU SDK
MENOU SDK MENOU SDK
MENOUフォーラム

Method DrawRectangle

DrawRectangle(IBoundingBox, Color, int, int, bool)

指定したバウンディングボックスを矩形で描画します。

Declaration
void DrawRectangle(IBoundingBox bbox, Color color, int thickness, int margin = 0, bool fill = false)
Parameters
Type Name Description
IBoundingBox bbox

描画するバウンディングボックス。

Color color

矩形の色。

int thickness

矩形の線の太さ。

int margin

矩形のマージン。

bool fill

矩形を塗りつぶすかどうか。

DrawRectangle(int, int, int, int, Color, int, int, bool)

指定した座標で矩形を描画します。

Declaration
void DrawRectangle(int x, int y, int width, int height, Color color, int thickness, int margin = 0, bool fill = false)
Parameters
Type Name Description
int x

矩形の左上X座標。

int y

矩形の左上Y座標。

int width

矩形の幅。

int height

矩形の高さ。

Color color

矩形の色。

int thickness

矩形の線の太さ。

int margin

矩形のマージン。

bool fill

矩形を塗りつぶすかどうか。

© Copyright 2021 MENOU Corp.