搜索资源列表
drawMFC
- 一个简单的程序,可以绘制点、线、圆、方。可以保存成一定格式的图片文件。软件最大的问题是绘图基本在对应的鼠标事件里进行,而没有在paint方法里进行,可借鉴。-A simple program, you can draw points, lines, circles, square. Can be saved into a certain format image files. The biggest problem is the graphics software basic mouse eve
qt-wheelEvent
- qt编写的处理鼠标事件的小程序,可以相应鼠标单击,移动,滚轮移动等事件-qt prepared to handle mouse events in the small program, you can click on the corresponding mouse, move, move events such as wheel
line2Doc
- 画直线,在C++环境下建立一个MFC工程,建议一个鼠标事件,并在此基础上,定义一个画刷,填充所花的区域-Draw a straight line, to establish an environment in C++ MFC project, suggested a mouse event, and on this basis, define a brush, filling the area spent
ChildFrm
- 画一条抛物线,在C++环境下建立一个MFC工程,定义一个鼠标事件,并定义一个画刷,填充所画的图形-Draw a parabola, to establish an environment in C++ MFC project, define a mouse event, and define a brush, filling the painting graphics
hzx2Doc
- 画多条直线,在C++环境下,建立一个MFC工程,定义一个鼠标事件,并在此基础上,定义一个画刷,填充所画的图形-Draw multiple lines in C++ environment, build a MFC project, define a mouse event and on this basis, define a brush, filling the painting graphics
mouse_event
- 基于opencv1.0的鼠标事件响应,相当好用,本人极力推荐,就是解释是日语-Based opencv1.0 mouse incident response, very easy to use, I strongly recommend that interpretation is in Japanese
mouse1
- 计算机图形学opengl 鼠标事件的基本框架,包括鼠标回调函数,鼠标点击,移动,释放登事件-The basic framework of computer graphics opengl mouse events, including mouse callback function, mouse click, move, release the registration event
CSharpSaoLei_1.0
- C#扫雷小游戏,实现了扫雷有些的基本功能,通过鼠标事件获取坐标来移动雷区,可以达到娱乐的目的-C# minesweeping game, has realized the mine clearance of some basic functions, through the mouse events get coordinates to move minefield, can achieve the purpose of entertainment
CSharpSolitaire
- C#纸牌小游戏,实现了纸牌有些的基本功能,通过鼠标事件获取坐标来移动图片,可以自由替换poker文件夹内的图片以获取更好的视觉效果-Card games, c# realize the basic function of some CARDS, moving images by mouse events for coordinates, free replacement poker folder of the images in order to get better visual effect
Unit1
- TeeTree组件鼠标事件改变图元颜色代码-TeeTree Component mouseEvent change color
puzzle
- 用JAVA实现拼图游戏,用鼠标拖动选中的小图片进行拼接,可以拼成一幅完整的图片。本实例的知识点有:鼠标事件的监听,Graphics类和Image类的应用。-Using JAVA jigsaw puzzle, use the mouse to drag the selected splicing small picture, you can spell a complete picture. Knowledge point of this example are: listening, Graph
DRAW
- MFC框架下的VC绘图板,包括基本图形的绘制,橡皮擦,铅笔随手画,取色等,包括了鼠标事件,定时器,工具栏和菜单栏的建立,可用于MFC入门级的小程序。-MFC Drawer based on MFC。
97
- 编程思路:首先,本练习因为要制作抓不住的方块的实例,所以首先要制作界面中的方块,先通过Graphics类的对象函数g.setColor(Color.red)设置方块的颜色为红色,然后通过语句g.drawRect(0, 0, size().width - 1, size().height - 1)和g.drawRect(mx, my, (size().width/10) - 1, (size().height/10) - 1)绘制出两个矩形,这样就完成了方块的制作。然后,为了实现“抓不住方块”的效
99
- 1)编程思路:本练习因为要制作拼图游戏,所以首先要实现图片的导入。这是通过getImage()函数来实现的,该函数有两个参数,第一个参数指明图片的路径,第二个参数指明图片的名称。然后,因为要实现图片摆放的随意性,所以要通过initgame()函数来实现。Initgame()函数是自写函数,在函数体内,通过调用Math.random()函数产生随机数,用来达到图片位置摆放的随意性和随机性。最后,因为要实现人机交互.,所以首先要通过一系列函数来实现对鼠标事件的监听和响应,这是通过函数addMouse
MouseEventDemo
- 鼠标事件练习,编写一个程序,其功能为:在窗口上放一个按钮,当不断单击按钮时显示它被单击的次数。-Mouse events exercises, write a program, and its function is: put a button on the window displays the number of times it has been clicked when constantly click the button.
zhuawa.net-kuishouanjian-master(OLD)
- 脚本录制软件,记录用户键盘鼠标事件,并生成xml文件,用于模拟鼠标、键盘-scr ipt recording software, record user keyboard and mouse events, and generate xml file, used to simulate a mouse, keyboard
mousetrack
- 知识点:使用Graphics类制作方块,使用java.awt.Event类响应鼠标动作,使用Color类设置方块的颜色,使用int类记录光标的位置。 实现思路:首先要制作界面中的方块,通过Graphics类的对象函数g.setColor(Color.red)设置方块的颜色为红色,然后通过语句g.drawRect(0, 0, size().width - 1, size().height - 1)和g.drawRect(mx, my, (size().width/10) - 1, (si
javafirework
- Java烟花特效代码,用鼠标点击浏览器中的面板,将出现五彩缤纷的烟花效果。要用到的Java知识点有:鼠标事件的监听,Graphics类和Thread类的应用。使用Graphics类:绘制烟花,使用Thread类:管理线程,使用Math类:产生随机数,使用Color类:设置颜色。 实现思路:Java模拟烟花效果,首先定义主线程的函数run()对一个烟花进行绘制。在函数run()中定义Graphics类的对象,通过程序中的算法来绘制烟花。然后实现烟花的缤纷闪烁效果,通过Thread类的Th
javapintu
- Java拼图游戏的源代码,另附游戏技术文档,本拼图游戏运用了Java2中的图形处理技术和消息响应技术。通过图形技术实现图片导入和分割。通过消息响应机制,使程序响应用户的鼠标操作,进行拼图游戏的操作。用鼠标拖动选中的小图片进行拼接,可以拼成一幅完整的图片。本源码的知识点有:鼠标事件的监听,Graphics类和Image类的应用-Java puzzle source code, technical documentation attached game, the puzzle using the J
javapiano
- Java Piano模拟钢琴效果的完整源码,知识点:使用AudioClip类播放声音,使用Java MouseEvent类处理鼠标事件,使用Image类制作图片,使用Frame类制作界面框架。运行后创建一个带有模拟钢琴键盘的面板,用户可以通过键盘或者鼠标来“敲击”钢琴键盘发出声音,也可以通过电脑键盘的组合键实现钢琴的高音。 编程思路:首先制作模拟钢琴的实例,生成程序界面:先通过语句Image m_ImgUp生成键盘、鼠标松开时显示的键盘图片,再通过语句Image m_ImgDown生成