Home » Developing U++ » UppHub » PlotCtrl
Re: PlotCtrl [message #22884 is a reply to message #22818] |
Mon, 24 August 2009 19:28   |
pveach1
Messages: 10 Registered: August 2009
|
Promising Member |
|
|
I would like to see this project expanded into a general charting library. It has a lot of potential especially when combined with the new headless drawing capabilities.
Google has an online charting service. But if they change it, a lot of programs will break.
One of the more confusing things is setting coordinate transformation/translation. I am currently using Win32 API to set xformations. Like this:
XFORM xm_ = { 1, 0, 0, -1, FLOAT(size.cx -100), FLOAT(Offset + size.cy+50)};
HDC hdc = w.GetHandle();
SetGraphicsMode ( hdc, GM_ADVANCED );
SetWorldTransform ( hdc, & xm );
// do something
SetWorldTransform ( hdc, & xm_default ) ; // restore coordinates
This is only valid for WIN2k or later.
I am unsure how U++ draw does xforms.
|
|
|
Goto Forum:
Current Time: Sun May 04 00:03:44 CEST 2025
Total time taken to generate the page: 0.03108 seconds
|