データ変換
Namespace: FVIL.GDIAssembly: FVILbasic (in FVILbasic.dll) Version: 3.1.0.0 (3.1.0.17)
Syntax
C# |
---|
public virtual Rectangle ToRectangle() |
Visual Basic |
---|
Public Overridable Function ToRectangle As Rectangle |
Return Value
Type: Rectangleこのクラスが持つ矩形情報を Rectangle 構造体に格納して返します。
小数点以下桁は四捨五入されます。
C# | Copy |
---|---|
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); |