C#中的Tao SimpleOpenGlControl上的drawtobitmap方法 [英] drawtobitmap method on tao SimpleOpenGlControl in C#

查看:383
本文介绍了C#中的Tao SimpleOpenGlControl上的drawtobitmap方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有一个使用TAO SimpleOpenGlControl的应用程序.我正在向控件中渲染没有问题的曲面,直线和点,但是当我尝试在控件上调用DrawToBitmap方法时,没有得到红色的图形-我得到的是纯黑色图像(控件具有红色背景色).我确实需要使此方法正常运行,因为我正在使用利用DrawToBitmap方法进行打印的第三方控件.任何帮助将不胜感激.

谢谢
Jason

Hello,
I have an application that is using the TAO SimpleOpenGlControl. I am rendering surfaces, line and points with no issues into the control but when I try to call the DrawToBitmap method on the control I do not get the redered graphics - I get a solid black image (the control has a red background color). I really need to get this method to function properly since I am using a third party control which leverages the DrawToBitmap method for printing. Any help would be greatly appreciated.

Thanks
Jason

推荐答案

您唯一的信息来源就是控制者.不幸的是,看起来好像它们不再存在了,所以我要说放弃使用该库的开发,而切换到受IS支持的东西.

由于该控件未在正常的Win32曲面上绘制,因此您不会使其与DrawToBitmap一起使用.

我无法提出比现有建议更多的建议,因为无法了解该控件的工作原理,也找不到不在废弃域上的任何文档.
Your only source of information on this would be the people who made the control. Unfortunately, it doesn''t look like they''re around any more, so I''d say abandon development using that library and switch to something that IS supported.

Since the control is not drawing to a normal Win32 surface, you''re not going to get it to work with DrawToBitmap.

I can''t suggest anything more than I already have because there is no way of knowing how that control works, nor is there any documentation to be found on it that isn''t on abandoned domain.


这篇关于C#中的Tao SimpleOpenGlControl上的drawtobitmap方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆