VB.NET和GDI +选择对象 [英] VB.NET and GDI+ Selecting Objects

查看:111
本文介绍了VB.NET和GDI +选择对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我回来了关于GDI +的另一个问题:
我没有对OpenGL进行任何研究,而是了解了选择方法.

现在尝试通过GDI +在VB.NET中创建一些图形,我想知道如何选择矩形,圆形等...

在此先感谢,

Videep

Hello Everyone,

I am back with another question about GDI+:
I have dont my bit of research on OpenGL and found out about selection methods.

Now trying to create some graphics in VB.NET through GDI+, I would like to know how to select rectangles, circles etc...

Thanks in Advance,

Videep

推荐答案

好,我得到了解决方案:

声明一个矩形

Okay, I got the solution:

Declare a rectangle

Dim r as new rectangle(10,10,200,200)



在mouse_click事件中输入以下内容:




in the mouse_click event enter this:


If(r.contains(e.location))Then
msgBox("You clicked inside a rectangle :D")
EndIf


这篇关于VB.NET和GDI +选择对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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