如何将DirectX渲染到图片框控件或面板 [英] How to Rendering DirectX to a picture box control Or panel

查看:110
本文介绍了如何将DirectX渲染到图片框控件或面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
请指导我将DirectX渲染到图片框控件或任何控件

在图片框或面板或任何内容中创建并渲染直接3D窗口......。br />




感谢任何帮助

hi please guide me to Rendering DirectX to a picture box control or any control
create and render a direct 3D window inside a picturebox Or panel or anything... .


thanks for any help

推荐答案

这太荒谬了:如果你是使用DirectX,你不需要 PictureBox ,这只是一个非常简单的控件,用来做最简单的事情。除非你想以高度简化的方式显示一些静态图像,否则就忘记了这种高度滥用的控件。真正用于渲染图形的东西绝不是 PictureBox



第二个想法是:如果你已经使用VB.NET,你使用.NET。这意味着您不需要直接使用DirectX(双关语意外:-))。这不是那么容易做到的。如果你使用WPF,你可能会更好。 WPF库完全基于DirectX和易于使用的.NET库。更简单: System.Windows.Forms 或任何其他基于GDI +的UI的问题是它的图形不能很好地与DirectX图形一起使用;这些类型的图形在不同的级别实现,不结合。使用WPF,你没有这个问题。



-SA
This is ridiculous: if you are using DirectX, you don''t need PictureBox, which is just a very simple control used to do the simplest things. Unless you want to show some static image in highly simplified way, just forgot this highly abused control. What is really used to render graphics is never a PictureBox.

The second idea is this: if you already use VB.NET, you use .NET. It means that you don''t need to use DirectX directly (pun unintended :-)). This is not so easy to do. You can be better off if you use WPF instead. The WPF library is fully based on DirectX and the easy of use of a .NET library. Even easier: the problem with System.Windows.Forms or any other UI based on GDI+ is that its graphics cannot live with DirectX graphics well; these kinds of graphics are implemented in different levels and do not combine. With WPF, you don''t have this problem.

—SA


这篇关于如何将DirectX渲染到图片框控件或面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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