改变系统坐标,HOW?请各位高手指点!(100分)

  • 主题发起人 主题发起人 springsea
  • 开始时间 开始时间
S

springsea

Unregistered / Unconfirmed
GUEST, unregistred user!
近日心血来潮,编写一段动画程序,
涉及到按不同的原点旋转图象,
不知道如何改变TCANVAS的原点坐标,
请名家指点!
 
HDC就是TCanvas.Handle
BOOL SetViewportOrgEx(

HDC hdc, // handle of device context
int X, // new x-coordinate of viewport origin
int Y, // new y-coordinate of viewport origin
LPPOINT lpPoint // address of structure receiving original origin
);


Parameters

hdc

Identifies the device context.

X

Specifies the x-coordinate, in device units, of the new viewport origin.

Y

Specifies the y-coordinate, in device units, of the new viewport origin.

lpPoint

Points to a POINT structure. The previous viewport origin (in device coordinates) is placed in this structure. If lpPoint is NULL, nothing is returned.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部