FMX变更坐标系

时间:2018-12-05 12:41:13

标签: delphi coordinates firemonkey pascal cartesian

我想将Delphi FMX的坐标系(用于TImage,TPantBox等视觉控件)更改为使用笛卡尔坐标系(左下)

Cartesian coordinate system

我该怎么做?

这对于GDI非常基本:

HDC hDC = this->Canvas->Handle;
SetMapMode(hDC, MM_LOENGLISH); //Change coordinate system
SetViewportOrgEx(hDC, 300, 200, NULL); //Change origin

Delphi FMX的坐标点更改示例:

Image1.Position.Point := PointF(250, 250);

0 个答案:

没有答案