본문으로 건너뛰기

DrawRectangle

Overloads

NameDescription
DrawRectangle(Point min, Point max, int height, int groupId, Color color, float thickness, bool visible)Draw Rectangle (Only Z+)

DrawRectangle(Point min, Point max, int height, int groupId, Color color, float thickness, bool visible)

public int DrawRectangle(Point min, Point max, int height, int groupId, Color color, float thickness, bool visible)

Draw Rectangle (Only Z+)

Parameters

NameTypeDescription
minPointMin. Point
maxPointMax. Point
heightintHeight
groupIdintGroup Id
colorColor라인 색상
thicknessfloat라인 두께
visiblebool보이기/숨기기 상태

Returns

TypeDescription
int등록된 개체 ID

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
System.Drawing.Point p1 = new System.Drawing.Point(53674, -151674);
System.Drawing.Point p2 = new System.Drawing.Point(610765, -292509);

int shapeId = vizcore3d.ShapeDrawing.DrawRectangle(
p1 /* Min. Point */
, p2 /* Max. Point */
, 91127 /* Height : Z Axis. */
, 1 /* Group Id */
, Color.Red /* Line Color */
, 5 /* Thickness */
, true /* Visible */
);
}