开发者

Is there a workaround to get GraphicsContext out of SVGFileDC

I am writing a small viewer of some scientific data using wxWidgets. As long as it is a graph, it is preferrable to use GraphicsContext which uses floating coordinates, not integer. Also, it would be nice to save the same picture, not only draw it. When drawing at DC (e.g. PaintDC) I may just repla开发者_Python百科ce it with SVGFileDC in the new version of wxWidgets and get the file.

Is there some way to do similar trick with GraphicsContext? It seems that (according to documentation) there is no easy way to get GraphicsContext from SVGFileDC.


I cannot answer your question directly. However, it seems to me that you are working at too low a level and are probably 're-inventing the wheel'. I expect you would obtain all the features you need, plus many more you have not yet thought of by using an available, tested and debugged plotting package.

I have used wxMathPlot on several projects - it is excellent

Is there a workaround to get GraphicsContext out of SVGFileDC

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜