wxDC 绘图 设置坐标原点与设置x,y 方向函数

设置坐标原点函数:

 

wxDC::SetDeviceOrigin

void SetDeviceOrigin(wxCoord x, wxCoord y)

Sets the device origin (i.e., the origin in pixels after scaling has been applied).

This function may be useful in Windows printing operations for placing a graphic on a page.

 

设置x,y轴的方向:

wxDC::SetAxisOrientation

void SetAxisOrientation(bool xLeftRight, bool yBottomUp)

Sets the x and y axis orientation (i.e., the direction from lowest to highest values on the axis). The default orientation is x axis from left to right and y axis from top down.

Parameters

xLeftRight

      True to set the x axis orientation to the natural left to right orientation, false to invert it.

yBottomUp

        True to set the y axis orientation to the natural bottom up orientation, false to invert it.

posted on 2013-03-18 10:02  叶&秋  阅读(396)  评论(0编辑  收藏  举报

导航