有难度啊,c#图片编辑及热点处理!

red_fish 2009-03-30 03:37:14
所实现的功能:
一个图片a,在a上任意位置作一个圆形(或其他形状)标记并将此标记起个名称为B,然后将带有标记的图片保存到数据库,下次在调出来后当鼠标移动到B标记上时点击能显示一个欢迎信息。
------------------------------------------
查了很多资料,都没有类似的。请大家谈谈怎么处理。
...全文
620 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
不老神仙 2010-01-25
  • 打赏
  • 举报
回复
呵呵 顶下
anheizhizi 2009-03-30
  • 打赏
  • 举报
回复
搞GIS的都会弄...
对元数据进行标记,添加图层(DIV)
ww_cain 2009-03-30
  • 打赏
  • 举报
回复
顶贴收分
zzxap 2009-03-30
  • 打赏
  • 举报
回复
[CODE=HTML]
<map name="Map">
<area shape="rect" coords="73,87,103,104" href="javascript:Go('新疆')">
<area shape="rect" coords="144,125,173,142" href="javascript:Go('青海')">
<area shape="rect" coords="84,158,115,175" href="javascript:Go('西藏')">
<area shape="rect" coords="220,90,257,105" href="javascript:Go('内蒙古')">
<area shape="rect" coords="348,45,389,61" href="javascript:Go('黑龙江')">
<area shape="rect" coords="346,68,371,83" href="javascript:Go('吉林')">
<area shape="rect" coords="323,84,351,100" href="javascript:Go('辽宁')">
<area shape="rect" coords="298,100,326,114" href="javascript:Go('天津')">
<area shape="rect" coords="288,120,314,136" href="javascript:Go('山东')">
<area shape="rect" coords="268,107,295,121" href="javascript:Go('河北')">
<area shape="rect" coords="207,116,235,130" href="javascript:Go('宁夏')">
<area shape="rect" coords="186,162,214,179" href="javascript:Go('四川')">
<area shape="rect" coords="256,142,281,157" href="javascript:Go('河南')">
<area shape="rect" coords="305,144,332,159" href="javascript:Go('江苏')">
<area shape="rect" coords="320,162,342,177" href="javascript:Go('上海')">
<area shape="rect" coords="216,168,243,185" href="javascript:Go('重庆')">
<area shape="rect" coords="250,162,277,177" href="javascript:Go('湖北')">
<area shape="rect" coords="283,161,308,177" href="javascript:Go('安徽')">
<area shape="rect" coords="213,196,239,209" href="javascript:Go('贵州')">
<area shape="rect" coords="243,183,269,198" href="javascript:Go('湖南')">
<area shape="rect" coords="273,185,299,200" href="javascript:Go('江西')">
<area shape="rect" coords="308,177,334,193" href="javascript:Go('浙江')">
<area shape="rect" coords="179,210,204,225" href="javascript:Go('云南')">
<area shape="rect" coords="227,214,252,228" href="javascript:Go('广西')">
<area shape="rect" coords="231,248,257,263" href="javascript:Go('海南')">
<area shape="rect" coords="292,200,319,214" href="javascript:Go('福建')">
<area shape="rect" coords="259,219,287,231" href="javascript:Go('广东')">
<area shape="rect" coords="244,231,270,246" href="javascript:Go('澳门')">
<area shape="rect" coords="276,232,304,248" href="javascript:Go('香港')">
<area shape="rect" coords="311,228,338,243" href="javascript:Go('台湾')">
<area shape="rect" coords="272,90,302,107" href="javascript:Go('北京')">
<area shape="rect" coords="196,130,222,145" href="javascript:Go('甘肃')">
<area shape="rect" coords="246,116,272,130" href="javascript:Go('山西')">
<area shape="rect" coords="224,136,252,151" href="javascript:Go('陕西')">
</map>

[/CODE]
zzxap 2009-03-30
  • 打赏
  • 举报
回复
将带有标记的图片保存到数据库??任意位置??

牛B
red_fish 2009-03-30
  • 打赏
  • 举报
回复
谢谢各位提供的思路和想法,因为图象处理方面没有做过,所以开始没有头絮。
我会根据各位大侠说的方法来做个测试,再次表示感谢。
做完后再来此结贴。
天乐 2009-03-30
  • 打赏
  • 举报
回复
不知道楼主觉得难在哪里。

你这个问题可以拆分为多个步骤,你觉得困难的是在哪一步呢?

1、画圆(或其他形状),并标记

2、保存形状及相关信息

3、下次调用时取出还原

4、热点效果:鼠标悬停时显示某些信息



精准的说出你的疑惑,大家才好有的放矢
我不懂电脑 2009-03-30
  • 打赏
  • 举报
回复
用专业控件吧如:addflow
blestcc 2009-03-30
  • 打赏
  • 举报
回复
圖片做成一個table的背景,table的行數和列數視要求的精確程度自定。然後只要記錄那個點在第幾行第幾列就行了。下次加載就在指定的單元格顯示這個點,歡迎信息一起存入數據庫。
ztenv 2009-03-30
  • 打赏
  • 举报
回复
1、这个东西吧,其实只需要记录你的热点的中心点及半径就行了,下次启动时读出数据,并在MoseDown()事件中处理当前鼠标所以位置的信息,如果当前鼠标在所设置的热点中,则触发MoseDown事件,否则不做任何响应;
2、用一个透明的控件(以前用delphi做过,把label设置为透明)
zgke 2009-03-30
  • 打赏
  • 举报
回复
1 数据库有两个字段 一个是图片 一个是多变形
2 在图形数据上进行添加数据...(感觉这太乱来了.改变了图形的数据)

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧