データ変換

Namespace: FVIL.Data
Assembly: FVILbasic (in FVILbasic.dll) Version: 3.1.0.0 (3.1.0.17)

Syntax

C#
public Rectangle ToRectangle()
Visual Basic
Public Function ToRectangle As Rectangle

Return Value

Type: Rectangle

このクラスが持つ矩形情報を Rectangle 構造体に格納して返します。

小数点以下桁は四捨五入されます。

C# Copy imageCopy
System.Drawing.Rectangle        rect;
rect.X      = FVIL.Math.Function.Round(X);
rect.Y      = FVIL.Math.Function.Round(Y);
rect.Width  = FVIL.Math.Function.Round(Width);
rect.Height = FVIL.Math.Function.Round(Height);

See Also