在渲染中绘制矩形 [英] draw rectangle into the render

查看:120
本文介绍了在渲染中绘制矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每个人都制作了一个应用程序,该应用程序使用DirectShow和使用Win32组件的c ++创建了Steam.
我可以随时停止此视频流并拍照.
问题是我需要以某种方式在窗口渲染中放置一个矩形,并能够移动该矩形并调整其大小
我避免开发过滤器,因为它不会为我提供此功能
任何想法
可以directDraw在此任务中帮助我!!!

hi every one i made an app that creates a steam using directshow & c++ using win32 components .
i''m able to stop this stream and take picture at any moment it''s fine .
the thing is that i need in some way to place a rectangle inside the window render and be able to move this rectangle & resize it
i''m avoiding to develop a filter because it won''t give me this functionality
any idea
could directDraw help me in this task !!

推荐答案

您不断改写问题并获得有效答案.

这个问题可能会给您类似的答案.

您要的是高级主题.没有简单或简单的答案.

如果您不想使用滤镜,则必须在其他函数在表面上绘制之后在表面上绘制矩形.如何执行将取决于您使用的技术和构造绘图代码的方式.

您将必须了解有关图形编程的更多信息才能继续进行.

这不是我们可以用勺子喂你的话题.

在网络上查找具有类似功能的示例.学习代码.查找有关您不了解的电话的文档.阅读有关这些主题的教程.

随着学习的深入,请再提出一些更具体的技术问题.
You keep rephrasing the question and getting valid answers.

This question is likely to get you similar answers.

What you''re asking for is an advanced topic. There are no simple or easy answers.

If you don''t want to use filters, you''ll have to draw the rectangle on the surface after your other functions draw on the surface. How you do that is going to be dependent on the technologies you use and the way you structure your drawing code.

You''re going to have to learn more about graphics programming to proceed further.

It''s not a topic we can spoon feed you on.

Look for examples on the web that do similar things. Study the code. Look up documentation on any calls you don''t understand. Read tutorials on those topics.

As you learn more, please come back with more specific technical questions.


您好,

可以通过几种方法在视频上绘制矩形:
1.实现自己的分配器演示者,并使用自己的图形渲染视频(Direct3D演示EVR或VMR).
2.在应用程序中,通过ISampleGrabber创建回调,并在传入的样本(主要用于GDI或GDI +)上绘制图像
3.实现自己的过滤器并在其中进行绘图.可以在这里使用任何机制,但大多数情况下使用GDI +都可以.

问候,
Maxim.
Hello,

Drawing rectangle on a video can be done via few ways:
1. Implementing your own allocator presenter and do render video with your own drawing (Direct3D presenting EVR or VMR).
2. In application create callback via ISampleGrabber and draw image on incoming samples (mostly used GDI or GDI+)
3. Implementing own filter and perform drawing in there. Can be used any mechanism here but mostly will be fine with GDI+.

Regards,
Maxim.


这篇关于在渲染中绘制矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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