Home  >  Article  >  Backend Development  >  写一个程序,用于增删改一张图片上的城市

写一个程序,用于增删改一张图片上的城市

WBOY
WBOYOriginal
2016-06-13 12:49:05916browse

写一个程序,用来增删改一张图片上的城市
一张jpg格式的地图,上面有各大城市的名字,写出增删改图上的城市的程序!

地图 图片 城市
------解决方案--------------------
首先有一张图片(此图片为没有任何城市的图片)
然后根据你的实际情况 比如需要哪座城市
在图片上响应的坐标位置写上东西
输出图片
------解决方案--------------------
你回应我的回复滞后了24小时,所以我至多会在240小时之后再回应你
1、内盟古是省级区划,不是城市。
2、算法也很简单:
a)定位
b)用定位点左边的像素替换定位点的像素
d)定位点 = 定位点 + 1
e)重复 b ,直至定位点的像素 == 初始定位点左边的像素
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn