GxSizeF.CreateFromPoint

Fore Syntax

CreateFromPoint(Point: IGxPointF);

Fore.NET Syntax

CreateFromPoint(Point: Prognoz.Platform.Interop.Drawing.GxPointF);

Parameters

Point. The point that is used to create a new size.

Description

The CreateFromPoint constructor creates a new size from the point parameters passed by the Point parameter.

Comments

The X coordinate of the point corresponds to the width, the Y coordinate corresponds to the height of the new size.

Fore Example

Function GetSizeFFromPoint(Point: IGxPointF): IGxSizeF;
Var
    OutSize: IGxSizeF;
Begin
    OutSize := New GxSizeF.CreateFromPoint(Point);
    Return OutSize;
End Function GetSizeFFromPoint;

This function returns the new size based on the distance to the point passed by input parameter.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetSizeFFromPoint(Point: GxPointF): GxSizeF;
Var
    OutSize: GxSizeF = New GxSizeFClass();
Begin
    OutSize.CreateFromPoint(Point);
    Return OutSize;
End Function;

The function returns the new size based on the distance to the point passed by input parameter.

See also:

GxSizeF