在C#中给图片添加热区
来源:互联网 发布:ipadair2壁纸软件 编辑:程序博客网 时间:2024/04/29 00:12
System.Web.UI.WebControls.ImageMap img = new System.Web.UI.WebControls.ImageMap();
img.ImageUrl = "PlanImg.aspx?PPID=" + pp_id;
DrawHotMap(60, 95, 76, 476, "1.aspx?pp_id=" + pp_id, "总计", img);
DrawHotMap(110, 130, 76, 476, "a.aspx?pp_id=" + pp_id, "合同",img);
DrawHotMap(130, 150, 76, 476, "b.aspx?pp_id=" + pp_id, "入库", img);
DrawHotMap(150, 170, 76, 476, "c.aspx?pp_id=" + pp_id, "调拨", img);
DrawHotMap(170, 190, 76, 476, "d.aspx?pp_id=" + pp_id, "登记", img);
DrawHotMap(5, 35, 550, 590, "detail.aspx?pp_id=" + pp_id, "详细", img);
Panel1.Controls.Add(img);
Panel1.Controls.Add(new LiteralControl(" <br> <br> "));
img.ImageUrl = "PlanImg.aspx?PPID=" + pp_id;
DrawHotMap(60, 95, 76, 476, "1.aspx?pp_id=" + pp_id, "总计", img);
DrawHotMap(110, 130, 76, 476, "a.aspx?pp_id=" + pp_id, "合同",img);
DrawHotMap(130, 150, 76, 476, "b.aspx?pp_id=" + pp_id, "入库", img);
DrawHotMap(150, 170, 76, 476, "c.aspx?pp_id=" + pp_id, "调拨", img);
DrawHotMap(170, 190, 76, 476, "d.aspx?pp_id=" + pp_id, "登记", img);
DrawHotMap(5, 35, 550, 590, "detail.aspx?pp_id=" + pp_id, "详细", img);
Panel1.Controls.Add(img);
Panel1.Controls.Add(new LiteralControl(" <br> <br> "));
private void DrawHotMap(int top, int bottom, int left, int right, string url, string strfont,ImageMap img)
...{
RectangleHotSpot rect = new RectangleHotSpot();
rect.Left = left;
rect.Top = top;
rect.Bottom = bottom;
rect.Right = right;
rect.AlternateText = strfont;
rect.NavigateUrl = url;
rect.Target = "_blank";
img.HotSpots.Add(rect);
img.Attributes.Add("hideFocus", "true");
img.HotSpotMode = HotSpotMode.Navigate;
}
...{
RectangleHotSpot rect = new RectangleHotSpot();
rect.Left = left;
rect.Top = top;
rect.Bottom = bottom;
rect.Right = right;
rect.AlternateText = strfont;
rect.NavigateUrl = url;
rect.Target = "_blank";
img.HotSpots.Add(rect);
img.Attributes.Add("hideFocus", "true");
img.HotSpotMode = HotSpotMode.Navigate;
}
- 在C#中给图片添加热区
- C# 给图片添加水印
- 给图片在博客中添加滤镜效果
- C#给图片添加版权信息
- C#给图片添加版权信息
- C# 给PDF添加图片背景
- C# 给treeView节点添加图片
- 给上传的图片添加水印--在流文件中添加
- C#中添加图片水印
- 在C#里面给PPT添加注释
- MFC中给按钮添加图片
- C#中给WebClient添加代理Proxy
- C#中如何给Excel添加水印
- 安卓在代码中给button添加和设置图片
- 在数据库中添加图片
- 在文本框中添加图片
- 在excel中添加图片
- 在TextView中添加图片
- 关于关闭IE清空session的总结
- 我的架构
- ASP开发中存储过程应用详解
- 四元数(Quaternions)
- 希腊众神介绍
- 在C#中给图片添加热区
- [转]SAP message 探究
- java的原始类型于引用类型(经典!)
- 世行新版报告显示中国经济缩水四成
- Camtasia Recorder
- JDK、JRE、JVM之间的关系
- oracle中如何查找表的主键字段
- [图]Linux堆内存释放的总结
- 在VC++ 6.0下利用消息实现内部进程通讯