博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SharpMap实践代码
阅读量:4481 次
发布时间:2019-06-08

本文共 1735 字,大约阅读时间需要 5 分钟。

SharpMap实践代码

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms; namespace WindowsFormsApplication1{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();            Initialize();        }         private void Initialize()        {            System.Drawing.Image image                = new System.Drawing.Bitmap(400,300);            System.Drawing.Graphics graphics                = System.Drawing.Graphics.FromImage(image);             System.Drawing.Brush brush                = new System.Drawing.SolidBrush(System.Drawing.Color.FromArgb(120,                        System.Drawing.Color.Green                    ));            System.Drawing.Drawing2D.GraphicsPath graphicsPath                = new System.Drawing.Drawing2D.GraphicsPath();            System.Drawing.PointF[] pa = {                                             new System.Drawing.PointF(123,12),                                             new System.Drawing.PointF(34,45),                                             new System.Drawing.PointF(99,34),                                             new System.Drawing.PointF(100,100),                                             new System.Drawing.PointF(200,300),                                             new System.Drawing.PointF(300,200)                                         };            graphicsPath.AddPolygon(pa);             graphics.FillPath(brush,graphicsPath);             this.pictureBox1.Image = image;            //graphics.Dispose();         }     }}

 

转载于:https://www.cnblogs.com/hongjiumu/archive/2013/01/09/2853813.html

你可能感兴趣的文章
Pascal程序练习-与7无关的数
查看>>
angularjs 使用angular-sortable-view实现拖拽效果(包括拖动完成后的方法使用)
查看>>
多路复用IO模型
查看>>
利用Python爬虫刷店铺微博等访问量最简单有效教程
查看>>
[leetCode]Linked List Cycle I+II
查看>>
会了这十种Python优雅的写法,让你工作效率翻十倍,一人顶十人用!
查看>>
2013年终总结
查看>>
正则表达式
查看>>
Mysql的DATE_FORMAT()日期格式转换
查看>>
SparkStreaming入门及例子
查看>>
Web应用增加struts2支持
查看>>
java程序——凯撒加密
查看>>
Windows Store App之数据存储
查看>>
English class 82 The Importance of traveling
查看>>
python用递归函数解汉诺塔游戏
查看>>
Redis与Python交互
查看>>
Maximum-SubsequenceSum
查看>>
常用的一些shell变量
查看>>
Android无法删除项目+导入项目报错
查看>>
poj 2349(最小生成树应用)
查看>>