Esempio n. 1
0
 public GBrush(BrushStyle aStyle, HatchStyle hatchStyle, Colorref aColor, Guid uniqueID)
 {
     BrushStyle = aStyle;
     HatchStyle = hatchStyle;
     Color = aColor;
     UniqueID = uniqueID;
 }
        public static string BrushStyleToString(BrushStyle style)
        {
            string s = "";

            switch (style)
            {
                case BrushStyle.Square:
                    s = "Square";
                    break;
                case BrushStyle.Diamond:
                    s = "Diamond";
                    break;
                case BrushStyle.Circle:
                    s = "Circle";
                    break;
                case BrushStyle.VBar:
                    s = "VBar";
                    break;
                case BrushStyle.HBar:
                    s = "HBar";
                    break;
                case BrushStyle.Slash:
                    s = "Slash";
                    break;
                case BrushStyle.Backslash:
                    s = "Backslash";
                    break;
            }
            return s;
        }
		/// <summary>
		/// 
		/// </summary>
		/// <param name="g"></param>
		/// <param name="drawRectF"></param>
		/// <param name="drawColor"></param>
		/// <param name="orientation"></param>
		public static void DrawAquaPillSingleLayer(Graphics g, RectangleF drawRectF, Color drawColor, Orientation orientation, BrushStyle brushStyle)
		{
		    if (brushStyle == BrushStyle.LinearGradient)
		    {
		        var colorBlend = new ColorBlend();
		        var color1 = drawColor;
                var color2 = ControlPaint.Light(color1);
                var color3 = ControlPaint.Light(color2);
                var color4 = ControlPaint.Light(color3);

		        colorBlend.Colors = new[] {color1, color2, color3, color4};
		        colorBlend.Positions = new[] {0, 0.25f, 0.65f, 1};

		        var gradientBrush = orientation == Orientation.Horizontal
		                                                ? new LinearGradientBrush(
		                                                      new Point((int) drawRectF.Left, (int) drawRectF.Top),
		                                                      new Point((int) drawRectF.Left,
		                                                                (int) drawRectF.Top + (int) drawRectF.Height), color1,
		                                                      color4)
		                                                : new LinearGradientBrush(
		                                                      new Point((int) drawRectF.Left, (int) drawRectF.Top),
		                                                      new Point((int) drawRectF.Left + (int) drawRectF.Width,
		                                                                (int) drawRectF.Top), color1, color4);
		        gradientBrush.InterpolationColors = colorBlend;

		        FillPill(gradientBrush, drawRectF, g);
		    }
		    else
		    {
                FillPill(new SolidBrush(drawColor), drawRectF, g);
		    }
		}
Esempio n. 4
0
        private Text()
            : base(EffectType.Text)
        {
            _cFont               = null;
            _oLock               = new object();
            _cSyncRoot           = new object();
            _bDisposed           = false;
            _nWidthMax           = ushort.MaxValue;
            _nHeightMax          = ushort.MaxValue;
            _nShiftTop           = 0;
            _nPressBottom        = 0;
            _stAreaMeasured      = new Area(0, 0, 0, 0);
            _bIsGoingStop        = false;
            _bWaitForOutDissolve = true;

            _eBrushStyle             = BrushStyle.Solid;
            _stColor                 = Color.White;
            _stColorGradient         = Color.Black;
            _stColorBorder           = Color.Black;
            _stColorBorderBackground = Color.Transparent;
            _dtChanged               = DateTime.Now;
            _nBorderWidth            = 0;
            cDock              = new Dock();
            _aDrawCurrent      = null;
            _aPMGotDrawCurrent = new List <long>();
        }
Esempio n. 5
0
 public void StartDraw(Transform StrokesContainer, BrushInfo BrushInf, float BrushWidth, Color color)
 {
     brushColor = color;
     brushWidth = BrushWidth;
     brushStyle = GetBrushStyle();
     brushStyle.StartPaint(StrokesContainer, BrushInf, BrushWidth, color);
 }
Esempio n. 6
0
 public GeoSHPData(string filePath)
 {
     this.m_DefaultPenStyle = new PenStyle();
     this.m_DefaultBrushStyle = new BrushStyle();
     this.m_PointList = new List<GeoDisplayPoint>();
     this.m_PolyLineList = new List<GeoDisplayLine>();
     this.m_RegionList = new List<GeoDisplayPolygonRegion>();
     base.m_DataSource = filePath;
     this.GenerateDefaultStyle();
 }
Esempio n. 7
0
 protected GeoSHPData(SerializationInfo info, StreamingContext context)
 {
     this.m_DefaultPenStyle = new PenStyle();
     this.m_DefaultBrushStyle = new BrushStyle();
     this.m_PointList = new List<GeoDisplayPoint>();
     this.m_PolyLineList = new List<GeoDisplayLine>();
     this.m_RegionList = new List<GeoDisplayPolygonRegion>();
     base.m_DataSource = info.GetString("DataSource");
     base.m_FolderNodeName = info.GetString("FolderNodeName");
     this.GenerateDefaultStyle();
     this.Read();
 }
Esempio n. 8
0
        public WmfCreateBrushIndirectRecord AddCreateBrushIndirect(Color color, BrushStyle style = BrushStyle.BS_SOLID, HatchStyle hatch = HatchStyle.HS_HORIZONTAL)
        {
            var record = new WmfCreateBrushIndirectRecord()
            {
                Color = color,
                Style = style,
                Hatch = hatch
            };

            this.Records.Add(record);
            return(record);
        }
Esempio n. 9
0
        static void Main()
        {
            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
            MnM.GWS.Application.Attach(Gws.Instance);
#if Demo
            goto Run;
#endif
            rg           = new BrushStyle(BrushTypes.Conical, Rgba.Red, Rgba.SkyBlue, Rgba.LightPink, Rgba.Green);
            rg1          = new BrushStyle(BrushTypes.Vertical, Rgba.Yellow, Rgba.Green, Rgba.Orange, Rgba.Olive);
            fs           = new BrushStyle(BrushTypes.Conical, Rgba.Gold, Rgba.Orange, Rgba.Green, Rgba.Teal);
            fs1          = new BrushStyle(BrushTypes.Vertical, Rgba.Black, Rgba.Maroon);
            moonfs       = new BrushStyle(BrushTypes.BackwardDiagonal, Rgba.Red, Rgba.Green);
            textureBrush = Factory.newBrush(AppDomain.CurrentDomain.BaseDirectory + "\\GWS.png");
            tahoma       = Factory.newFont("c:\\windows\\fonts\\tahoma.ttf", 40);

            Desktop = Factory.newForm(120, 120, 1000, 900);
            var Path = Desktop.Controls;
            Path.Add(new Polygon(90, 215, 163, 29, 63, 202,
                                 188, 46, 41, 182, 206, 70, 26, 156, 217, 97, 20,
                                 127, 219, 127, 22, 97, 213, 156, 33, 70, 198, 182, 51,
                                 46, 176, 202, 76, 29, 149, 215, 105,
                                 21, 120, 220, 134, 21, 90, 215), rg1);
            var parameters = new IParameter[] { rg, 23.ToStroke() };
            Path.Add(new Curve(600, 10, 300, 400), parameters);

            Path.Add(new Bezier(158, 181, 174, 348, 350, 363, 541, 145), parameters);

            Path.Add(new Tetragon(425, 480, 650, 690, 190), parameters);

            ////window.AddBuffer();
            ////window.SwitchToBuffer(0);

            Path.Add(new RoundBox(300, 300, 200, 200, 25), parameters);
            //window.Objects.Add(Factory.newTriangle(20, 300, 200, 350, 200, 467), Settings);

            Path.Add(new Curve(100, 500, 300, 200, 55, 300, CurveType.Pie), parameters);
            ////window.Settings.FillCommand = 0;
            Path.Add(parameters.AppendItem(tahoma), new TextElement("GWS - Drawing", 576, 507));
            Desktop.Paint     += Window_PaintBackground;
            Desktop.KeyPress  += Window_KeyPress;
            Desktop.MouseDown += Window_MouseDown;
            Desktop.MouseUp   += Window_MouseUp;
Run:
#if Demo
            MnM.GWS.Application.Run(Demo.Instance);
#else
            MnM.GWS.Application.Run(Desktop);
#endif
        }
Esempio n. 10
0
 private GeoLineStyle BuildLineStyle(BrushStyle brStyle, PenStyle penStyle)
 {
     GeoLineStyle style = new GeoLineStyle();
     if (penStyle != null)
     {
         style.LineWidth = penStyle.PenWidth;
         style.Color = penStyle.PenColor;
         return style;
     }
     if (brStyle != null)
     {
         style.Color = brStyle.ForeColor;
     }
     return style;
 }
Esempio n. 11
0
    public BrushStyle GetBrushStyle()
    {
        BrushStyle style = new BrushStyle();

        switch (BrushType)
        {
        case BrushPaintType.NormalPaint:
            style = new NormalMeshBrushStyle();
            break;

        case BrushPaintType.ParticlePaint:
            break;
        }
        return(style);
    }
Esempio n. 12
0
        public static BrushHatchData GetBrushHatchData(MetafileReader reader, BrushStyle style)
        {
            switch (style)
            {
            case BrushStyle.BS_PATTERN:
                return(new PatternBrushData(reader));

            case BrushStyle.BS_DIBPATTERNPT:
                return(new DIBPatternBrushData(reader));

            case BrushStyle.BS_HATCHED:
                return(new HatchBrushData(reader));

            default:
                return(null);
            }
        }
Esempio n. 13
0
    BrushStyle ReadBrushStyle(BrushSettings?settings)
    {
        var result = new BrushStyle();

        result.brushMode        = (BrushMode)(int)settings.Value.BrushMode;
        result.brushType        = (BrushType)(int)settings.Value.BrushType;
        result.constantWidth    = settings.Value.ConstantWidth;
        result.isFlat           = settings.Value.IsFlat;
        result.isObjectSpaceTex = settings.Value.IsObjectSpaceTex;
        result.isOneSided       = settings.Value.IsOneSided;
        result.isWeb            = settings.Value.IsWeb;
        result.multiLine        = settings.Value.MultiLine;
        result.taperOpacity     = settings.Value.TaperOpacity;
        result.taperShape       = settings.Value.TaperShape;
        result.textureIndex     = settings.Value.TextureIndex;
        return(result);
    }
Esempio n. 14
0
        public GDIBrush(BrushStyle aStyle, HatchStyle hatchStyle, Colorref colorref, Guid uniqueID)
            : base(true, uniqueID)
        {
            fBrushStyle = aStyle;
            fHatchStyle = hatchStyle;
            fColor = colorref;

            fLogBrush = new LOGBRUSH32();

            // Make sure to mask off the high order byte
            // or GDI will draw in black
            fLogBrush.lbColor = colorref & 0x00ffffff;
            fLogBrush.lbHatch = (int)hatchStyle;
            fLogBrush.lbStyle = (int)aStyle;

            IntPtr brushHandle = GDI32.CreateBrushIndirect(ref fLogBrush);

            SetHandle(brushHandle);
        }
Esempio n. 15
0
 public BrushDescription(Color color)
 {
     this.color = color;
     this.style = BrushStyle.SolidBrushStyle;
 }
Esempio n. 16
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="g"></param>
        /// <param name="drawRectF"></param>
        /// <param name="drawColor"></param>
        /// <param name="orientation"></param>
        public static void DrawAquaPillSingleLayer(Graphics g, RectangleF drawRectF, Color drawColor, Orientation orientation, BrushStyle brushStyle)
        {
            if (brushStyle == BrushStyle.LinearGradient)
            {
                var colorBlend = new ColorBlend();
                var color1     = drawColor;
                var color2     = ControlPaint.Light(color1);
                var color3     = ControlPaint.Light(color2);
                var color4     = ControlPaint.Light(color3);

                colorBlend.Colors    = new[] { color1, color2, color3, color4 };
                colorBlend.Positions = new[] { 0, 0.25f, 0.65f, 1 };

                var gradientBrush = orientation == Orientation.Horizontal
                                                                ? new LinearGradientBrush(
                    new Point((int)drawRectF.Left, (int)drawRectF.Top),
                    new Point((int)drawRectF.Left,
                              (int)drawRectF.Top + (int)drawRectF.Height), color1,
                    color4)
                                                                : new LinearGradientBrush(
                    new Point((int)drawRectF.Left, (int)drawRectF.Top),
                    new Point((int)drawRectF.Left + (int)drawRectF.Width,
                              (int)drawRectF.Top), color1, color4);
                gradientBrush.InterpolationColors = colorBlend;

                FillPill(gradientBrush, drawRectF, g);
            }
            else
            {
                FillPill(new SolidBrush(drawColor), drawRectF, g);
            }
        }
Esempio n. 17
0
 public virtual void CreateBrush(BrushStyle aStyle, HatchStyle hatch, uint colorref, Guid uniqueID)
 {
     GDIBrush aBrush = DeviceContext.CreateBrush(aStyle, hatch, colorref, uniqueID);
     fObjectDictionary.Add(uniqueID, aBrush);
 }
Esempio n. 18
0
 public BrushDescription()
 {
     this.color = Color.Black;
     this.style = BrushStyle.SolidBrushStyle;
 }
Esempio n. 19
0
 public ObjectBrush(BrushStyle brushStyle) : this()
 {
     this.brushStyle = brushStyle;
 }
Esempio n. 20
0
 public ObjectBrush(System.Drawing.Color Color) : this()
 {
     this.brushStyle = BrushStyle.Solid;
     this.color      = Color;
 }
Esempio n. 21
0
 public BrushSettings(Color color, Color backColor, BrushStyle brushStyle)
 {
     Color = color;
     BackColor = backColor;
     BrushStyle = brushStyle;
 }
Esempio n. 22
0
 public BrushStyle BrushStyle()
 {
     if (brushStyle == null)
         brushStyle = new BrushStyle();
     return brushStyle;
 }
Esempio n. 23
0
 private GeoPolygonStyle BuildPolygonStyle(BrushStyle brStyle, PenStyle penStyle)
 {
     GeoPolygonStyle style = new GeoPolygonStyle();
     if (penStyle != null)
     {
         style.LineWidth = penStyle.PenWidth;
         style.Color = penStyle.PenColor;
     }
     if (brStyle != null)
     {
         style.IsFillPolygon = true;
         style.FillColor = brStyle.ForeColor;
     }
     return style;
 }
Esempio n. 24
0
 public BrushSettings(Color color, BrushStyle brushStyle)
     : this(color, Color.White, brushStyle) { }
Esempio n. 25
0
 /// <summary>
 /// Get object brush name
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(BrushStyle.ToString());
 }
Esempio n. 26
0
		/// <summary>
		/// Constructor method of <see cref="CustomTrackBar"/> class
		/// </summary>
		public CustomTrackBar()
		{
			MouseDown += OnMouseDownSlider;
			MouseUp += OnMouseUpSlider;
			MouseMove += OnMouseMoveSlider;

			SetStyle(ControlStyles.AllPaintingInWmPaint |
				ControlStyles.ResizeRedraw |
				ControlStyles.DoubleBuffer |
				ControlStyles.SupportsTransparentBackColor,
				true);

			Font = new Font("Verdana", 8.25F, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
			ForeColor = Color.FromArgb(123, 125, 123);
			BackColor = Color.Transparent;

			tickColor = Color.FromArgb(148, 146, 148);
			tickHeight = 4;

			trackerColor = Color.FromArgb(24, 130, 198);
			trackerSize = new Size(16,16);
			indentWidth = 6;
			indentHeight = 6;
					
			trackLineColor = Color.FromArgb(90, 93, 90);
            brushStyle = BrushStyle.LinearGradient;
			trackLineHeight = 3;

			borderStyle = CustomBorderStyle.None;
			borderColor = SystemColors.ActiveBorder;

			autoSize = true;
			Height = FitSize.Height;
		}
Esempio n. 27
0
        private void BuildStyle(ref PenStyle penStyle, ref BrushStyle brushStyle)
        {
            bool flag;
        Label_015B:
            flag = true;
            string str = this.ReadValidLine();
            if (str != null)
            {
                string[] separator = new string[] { "(", ")", ",", " " };
                string[] strArray2 = str.Split(separator, StringSplitOptions.RemoveEmptyEntries);
                StyleType nOTYPE = StyleType.NOTYPE;
                if (this.m_StyleStringType.ContainsKey(strArray2[0]))
                {
                    nOTYPE = this.m_StyleStringType[strArray2[0]];
                }
                switch (nOTYPE)
                {
                    case StyleType.PEN:
                        penStyle = new PenStyle();
                        penStyle.PenWidth = int.Parse(strArray2[1]);
                        penStyle.PenPattern = (PenPattern) int.Parse(strArray2[2]);
                        penStyle.PenColor = Color.FromArgb(0xff, Color.FromArgb(int.Parse(strArray2[3])));
                        goto Label_015B;

                    case StyleType.BRUSH:
                        brushStyle = new BrushStyle();
                        brushStyle.BrushPattern = (BrushPattern) int.Parse(strArray2[1]);
                        brushStyle.ForeColor = Color.FromArgb(0xff, Color.FromArgb(int.Parse(strArray2[2])));
                        if (strArray2.Length > 3)
                        {
                            brushStyle.BackColor = int.Parse(strArray2[3]);
                        }
                        goto Label_015B;

                    case StyleType.NOTYPE:
                        this.m_CrtLineIndex--;
                        return;

                    default:
                        goto Label_015B;
                }
            }
        }
        public static string BrushStyleToString(BrushStyle style)
        {
            string s = "";

            switch (style)
            {
                case BrushStyle.Square:
                    s = "Square";
                    break;
                case BrushStyle.Diamond:
                    s = "Diamond";
                    break;
                case BrushStyle.Circle:
                    s = "Circle";
                    break;
                case BrushStyle.VBar:
                    s = "VBar";
                    break;
                case BrushStyle.HBar:
                    s = "HBar";
                    break;
                case BrushStyle.Slash:
                    s = "Slash";
                    break;
                case BrushStyle.Backslash:
                    s = "Backslash";
                    break;
            }
            return s;
        }
Esempio n. 29
0
        static void Main()
        {
            //frame = true;
            Application.Attach(Gws.Instance);

            rg           = new BrushStyle(BrushTypes.Conical, Rgba.Red, Rgba.SkyBlue, Rgba.LightPink, Rgba.Green);
            rg1          = new BrushStyle(BrushTypes.Vertical, Rgba.Yellow, Rgba.Green, Rgba.Orange, Rgba.Olive);
            fs           = new BrushStyle(BrushTypes.Conical, Rgba.Gold, Rgba.Orange, Rgba.Green, Rgba.Teal);
            fs1          = new BrushStyle(BrushTypes.Vertical, Rgba.Black, Rgba.Maroon);
            moonfs       = new BrushStyle(BrushTypes.Horizontal, Rgba.Red, Rgba.Green);
            textureBrush = Factory.newBrush(AppContext.BaseDirectory + "\\GWS.png");
            tahoma       = Factory.newFont("c:\\windows\\fonts\\tahoma.ttf", 30);

            Desktop            = Factory.newDesktopWindow(width: 1000, height: 1000, flags: GwsWindowFlags.Resizable);
            Desktop.Paint     += Window_PaintBackground;
            Desktop.KeyPress  += Window_KeyPress;
            Desktop.MouseDown += Window_MouseDown;
            Desktop.MouseUp   += Window_MouseUp;
            Desktop.Resized   += Window_Resized;
            Desktop.KeyDown   += Desktop_KeyDown;

            //Factory.SystemFont.Size = 20;
            var Path = Desktop.Controls;

            Path.Add(new Polygon(167 + 200, 97, 110 + 200, 216, 248 + 200, 149, 107 + 200, 151, 218 + 200, 216),
                     new BrushStyle(BrushTypes.Conical, Rgba.Green, Rgba.Orange, Rgba.Black),
                     8.ToStroke(), PolyState.FloodFill.Add());

            Path.Add(new Polygon(90, 215, 163, 29, 63, 202, 188, 46, 41, 182, 206, 70,
                                 26, 156, 217, 97, 20, 127, 219, 127, 22, 97, 213, 156, 33, 70, 198, 182,
                                 51, 46, 176, 202, 76, 29, 149, 215, 105, 21, 120, 220, 134, 21, 90, 215), rg1);

            Path.Add(new Triangle(40, 10, 100, 140, 56, 300), moonfs);

            Path.Add(new Polygon(0, 500, 0, 300, 20, 300, 40, 500, 60, 300, 80, 300, 80, 500, 81, 499, 82,
                                 497, 83, 494, 84, 490, 85, 484, 86, 477, 87, 469, 88, 460, 89, 450, 90, 439, 91, 427,
                                 92, 414, 93, 400, 93, 475, 94, 480, 95, 485, 97, 490, 99, 495, 101, 500, 103, 495, 105,
                                 490, 107, 485, 108, 480, 110, 475, 110, 400, 112, 400, 112, 490, 113, 495, 115, 500, 117,
                                 497, 118, 493, 119, 488, 120, 482, 121, 475, 122, 467, 123, 458, 124, 448, 125, 437,
                                 126, 425, 127, 412, 129, 350, 129, 500, 129, 450, 140, 400, 130, 455, 140, 500, 141,
                                 494, 142, 487, 143, 479, 144, 470, 145, 460, 146, 450, 167, 450, 167, 443, 165, 431,
                                 163, 417, 161, 405, 159, 402, 157, 400, 155, 402, 153, 405, 151, 417, 149, 431, 147,
                                 443, 145, 449, 147, 458, 149, 470, 151, 484, 153, 495, 155, 500, 157, 500, 159, 500,
                                 161, 494, 163, 487, 165, 479, 167, 470, 169, 460, 171, 449, 173, 442, 175, 431, 177,
                                 418, 179, 407, 181, 404, 183, 402, 185, 404, 187, 407, 189, 418, 191, 431, 189, 424,
                                 187, 414, 185, 411, 183, 409, 181, 411, 179, 414, 177, 423, 175, 434, 177, 442, 179,
                                 446, 181, 449, 183, 452, 185, 456, 187, 464, 189, 475, 187, 488, 185, 499, 183, 502,
                                 181, 504, 179, 501, 177, 490, 175, 477, 177, 474, 179, 474, 181, 473, 183, 471, 185,
                                 468, 187, 464, 189, 459, 191, 453, 193, 446, 195, 438, 197, 429, 199, 419, 201, 408,
                                 203, 396, 205, 383, 207, 369, 209, 354, 209, 350, 209, 500, 210, 450, 212, 438, 214,
                                 425, 216, 412, 218, 405, 220, 402, 222, 400, 224, 403, 226, 410, 228, 422, 230, 433,
                                 232, 443, 232, 600, 0, 600, 0, 500), moonfs);
            var parameters = new IParameter[] { rg, 23.ToStroke(), FillMode.ExceptOutLine.Add() };

            Path.Add(new Curve(600, 20, 300, 400), parameters);
            Path.Add(parameters.AppendItem(moonfs), new Tetragon(425, 480, 650, 690, 190));

            Path.Add(new Bezier(158, 181, 174, 348, 350, 363, 541, 145), parameters);

            Path.Add(new RoundBox(300, 300, 200, 200, 25), parameters);
            Path.Add(new Curve(300, 527, 300, 200, 55, 300, CurveType.Pie), parameters);

            Path.Add(new TextElement("GWS - Drawing", 400, 570), tahoma, moonfs, 90.ToRotation(500, 500));
            //Path.Add(new TextElement(tahoma, "GWS - Drawing", 400, 570), rg1);

            //var polygonList = new PolygonCollection();
            //polygonList.Add(new Box(20, 20, 300, 300));
            //polygonList.Add(new Triangle(50, 30, 10, 100, 255, 240));
            //polygonList.Parameters = new ISettingsParam[] {
            //    moonfs, new FillType(FillMode.Outer), new Stroke(10)};
            //Path.Add(polygonList);

            Desktop.Show();
            Application.Run();
        }
Esempio n. 30
0
 public virtual GDIBrush CreateBrush(BrushStyle aStyle, HatchStyle hatch, Colorref colorref, Guid uniqueID)
 {
     GDIBrush aBrush = new GDIBrush(aStyle, hatch, colorref, uniqueID);
     return aBrush;
 }
 public static Color BrushToXamarinColor(BrushStyle axisBandsStyle)
 {
     return(ToXamarinColor(axisBandsStyle.Color));
 }
Esempio n. 32
0
 /// <param name="brushStyle"></param>
 public Brush BurshStyle(BrushStyle brushStyle)
 {
     this.brushStyle = brushStyle;
     return this;
 }
Esempio n. 33
0
 private void ReadPoint()
 {
     double x = this.ReadDouble(ByteOrder.LittleEndian);
     double y = this.ReadDouble(ByteOrder.LittleEndian);
     PenStyle style = new PenStyle();
     BrushStyle style2 = new BrushStyle();
     new GeoDisplayPoint(new GeoXYPoint(x, y)).AddFeature("ID", this.CreateMapUnitId());
 }