Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / how can I get wxDC::DrawLine  to accept doubles?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. how can I get wxDC::DrawLine  to accept doubles?
#3399
Posted by: 2004-02-21 06:26:27
Dear All

I am trying to draw a graph onto wxDC using the DrawLine method.  However, the coordinates are only accepted as integers ie whole numbers.  My data is in doubles ie. fractions.  Is there any way I can input coordinates into DrawLine as DOUBLES?

thanks in advance
Message2. Re: how can I get wxDC::DrawLine  to accept doubles?
#3411
Posted by: upCASE 2004-02-25 23:09:15
Hi!
Although there is something like wxRealPoint, I doubt that it will work. Maybe give it a try or mail the wx-dev list. Not sure if double based coordinates will be/ where introduced with 2.5.1.

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2024-10-6  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0