ConvertPtToView(Pt: IGxPoint): IGxPointF;
Pt. Point in pixels.
The ConvertPtToView method converts the defined point in pixels into a point in millimeters.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
view : IWxView;
Point : IGxPoint;
Begin
view := ws.CreateView;
view.Id := "MyView";
view.Scale := 0.5;
view.Size := New GxSizeF.Create(100.55,100.66);
Point := New GxPoint.Create(10,10);
view.Offset := view.ConvertPtToView(Point);
End Sub UserProc;
After executing the example a workspace view is created and parameters are defined.
See also: