GxSize.CreateFromPoint

Fore Syntax

CreateFromPoint(Point: IGxPoint);

Fore.NET Syntax

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

Parameters

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

Description

The CreateFromPoint constructor creates a new size based on the distance from the coordinates system center to the point 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 GetSizeFromPoint(Point: IGxPoint): IGxSize;
Var
    OutSize: IGxSize;
Begin
    OutSize := New GxSize.CreateFromPoint(Point);
    Return OutSize;
End Function GetSizeFromPoint;

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 GetSizeFromPoint(Point: GxPoint): GxSize;
Var
    OutSize: GxSize = New GxSizeClass();
Begin
    OutSize.CreateFromPoint(Point);
    Return OutSize;
End Function;

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

See also:

GxSize