如何在坐标为vb的位置将图片移动到文本文件中 [英] How to move A picture at vb with coordinates saved in text files

查看:91
本文介绍了如何在坐标为vb的位置将图片移动到文本文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiiiiii ...
 
我正在尝试用Visual Basic编写程序.
通过此程序,我将能够以协调器的形式在图片框中移动图像,该图像已经保存在文本文件(Y,X)中
你能帮我吗????
我希望视频和资源能学习到如何做?"我希望这些资源不会花那么多时间,因为这项作业的最后期限是明天
你觉得这很难吗?
在此先感谢

Hiiiiii...
 
I am trying to make a program with visual basic 
by this this program i will be able to move an image in picture box at form with coordinators that is already saved in text file (Y ,X)
so could you help me please ????
i want videos and resources to learn how to do that ?"i wish this resources won'ttake so time because the deadline for this homework is tomorrow
do you think it is difficult thing to do ?
thanks in advance

推荐答案

通过此程序,我将能够以协调器的形式在图片框中移动图像,该图像已经保存在文本文件中( Y,X)
by this this program i will be able to move an image in picture box at form with coordinators that is already saved in text file (Y ,X)

您是说图片框坐标保存在文本文件中吗?

Do you mean that the picturebox coordinates are saved in a text file?

使用Location属性放置图片框:
https ://msdn.microsoft.com/zh-CN/library/system.windows.forms.control.location%28v=vs.110%29.aspx

You position a picturebox using the Location property:
https://msdn.microsoft.com/en-us/library/system.windows.forms.control.location%28v=vs.110%29.aspx

如果有多个位置(例如动画),则将使用计时器,以便在计时器滴答事件中更新图片框位置:
https://msdn.microsoft.com /en-us/library/system.windows.forms.timer.tick(v=vs.110).aspx

If there are multiple positions, such as an animation, then you will use a timer so that the picture box location is updated in the timer tick event:
https://msdn.microsoft.com/en-us/library/system.windows.forms.timer.tick(v=vs.110).aspx

如果需要帮助从文件中读取X和Y值,则需要提供有关文件的完整信息,包括文件中存储的数据格式.

If you want assistance with reading the X and Y values from the file then you will need to provide full information about the file, including the format of the data stored in the file.




这篇关于如何在坐标为vb的位置将图片移动到文本文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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