diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-05-07 08:12:56 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-05-07 08:12:56 +0200 |
| commit | 6b02331dfe7c6d8290c136ce20b4a7c655b47aae (patch) | |
| tree | da414ee19018edaf1d37b8fd7a6e4fe1f86edecd /src/GraphicObjects | |
| parent | f3344a78e511213d235e4c91bf507264fd41ac0d (diff) | |
first tests with vkvg as backendvkvg
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/Border.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/Button.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/DockStack.cs | 9 | ||||
| -rw-r--r-- | src/GraphicObjects/GraduatedSlider.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 20 | ||||
| -rw-r--r-- | src/GraphicObjects/Group.cs | 6 | ||||
| -rw-r--r-- | src/GraphicObjects/HueSelector.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/Image.cs | 8 | ||||
| -rw-r--r-- | src/GraphicObjects/Label.cs | 28 | ||||
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 4 | ||||
| -rw-r--r-- | src/GraphicObjects/ProgressBar.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/SaturationValueSelector.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/Scroller.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/ScrollingObject.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/Shape.cs | 46 | ||||
| -rw-r--r-- | src/GraphicObjects/Slider.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/TabItem.cs | 48 | ||||
| -rw-r--r-- | src/GraphicObjects/TabView.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/TextBox.cs | 2 | ||||
| -rw-r--r-- | src/GraphicObjects/TextRun.cs | 4 | ||||
| -rw-r--r-- | src/GraphicObjects/Trend.cs | 6 |
22 files changed, 104 insertions, 99 deletions
diff --git a/src/GraphicObjects/Border.cs b/src/GraphicObjects/Border.cs index adeb32e7..2c11d1db 100644 --- a/src/GraphicObjects/Border.cs +++ b/src/GraphicObjects/Border.cs @@ -28,7 +28,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; using System.Diagnostics; -using Cairo; +using vkvg; namespace Crow { diff --git a/src/GraphicObjects/Button.cs b/src/GraphicObjects/Button.cs index 8b60dcb9..43d03a02 100644 --- a/src/GraphicObjects/Button.cs +++ b/src/GraphicObjects/Button.cs @@ -33,7 +33,7 @@ using System.Text; using System.Diagnostics; using System.Xml.Serialization; -using Cairo; +using vkvg; using System.ComponentModel; namespace Crow diff --git a/src/GraphicObjects/DockStack.cs b/src/GraphicObjects/DockStack.cs index ae8b9c89..7cb4fe2a 100644 --- a/src/GraphicObjects/DockStack.cs +++ b/src/GraphicObjects/DockStack.cs @@ -25,6 +25,7 @@ // THE SOFTWARE. using System; using Crow.IML; +using vkvg; namespace Crow { @@ -82,7 +83,7 @@ namespace Crow // } Rectangle rIn = default(Rectangle); - double dockThresh = 0.2; + double dockThresh = 0.2f; GraphicObject focusedChild; internal GraphicObject stretchedChild; @@ -178,7 +179,7 @@ namespace Crow RegisterForGraphicUpdate (); } - protected override void onDraw (Cairo.Context gr) + protected override void onDraw (Context gr) { gr.Save (); @@ -237,9 +238,9 @@ namespace Crow break; } gr.LineWidth = 1; - gr.SetSourceRGBA (0.4, 0.4, 0.9, 0.4); + gr.SetSource (0.4, 0.4, 0.9, 0.4); gr.FillPreserve (); - gr.SetSourceRGBA (0.9, 0.9, 1.0, 0.8); + gr.SetSource (0.9, 0.9, 1.0, 0.8); gr.Stroke (); } gr.Restore (); diff --git a/src/GraphicObjects/GraduatedSlider.cs b/src/GraphicObjects/GraduatedSlider.cs index e1d4dd46..932378ba 100644 --- a/src/GraphicObjects/GraduatedSlider.cs +++ b/src/GraphicObjects/GraduatedSlider.cs @@ -28,7 +28,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; -using Cairo; +using vkvg; using System.Xml.Serialization; namespace Crow diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index bc955368..07954a63 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -31,7 +31,7 @@ using System.Xml.Serialization; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; -using Cairo; +using vkvg; using System.Diagnostics; using Crow.IML; using System.Threading; @@ -127,10 +127,10 @@ namespace Crow parentElem.AppendChild (xe); } public Surface CreateIcon (int dragIconSize = 32) { - ImageSurface di = new ImageSurface (Format.Argb32, dragIconSize, dragIconSize); + Surface di = new Surface (CrowApplication.dev, dragIconSize, dragIconSize); using (Context ctx = new Context (di)) { - double div = Math.Max (LastPaintedSlot.Width, LastPaintedSlot.Height); - double s = (double)dragIconSize / div; + float div = Math.Max (LastPaintedSlot.Width, LastPaintedSlot.Height); + float s = (float)dragIconSize / div; ctx.Scale (s, s); if (bmp == null) this.onDraw (ctx); @@ -206,7 +206,7 @@ namespace Crow /// are repeated at each cached levels of the tree with correspondig coordinate system. This is done /// in a dedicated step of the update between layouting and drawing. /// </summary> - public Region Clipping; + public Cairo.Region Clipping; #region IValueChange implementation /// <summary> @@ -233,7 +233,7 @@ namespace Crow /// action. /// </summary> protected GraphicObject () { - Clipping = new Region (); + Clipping = new Cairo.Region(); #if DEBUG uid = currentUid; currentUid++; @@ -1628,9 +1628,9 @@ namespace Crow IsDirty = false; if (bmp != null) bmp.Dispose (); - bmp = new ImageSurface (Format.Argb32, Slot.Width, Slot.Height); + bmp = new Surface (CrowApplication.dev, Slot.Width, Slot.Height); using (Context gr = new Context (bmp)) { - gr.Antialias = Interface.Antialias; + //gr.Antialias = Interface.Antialias; onDraw (gr); } bmp.Flush (); @@ -1650,7 +1650,7 @@ namespace Crow ctx.SetSourceSurface (bmp, rb.X, rb.Y); ctx.Paint (); Clipping.Dispose (); - Clipping = new Region (); + Clipping = new Cairo.Region(); } /// <summary> Chained painting routine on the parent context of the actual cached version /// of the widget </summary> @@ -1692,7 +1692,7 @@ namespace Crow } void paintDisabled(Context gr, Rectangle rb){ gr.Operator = Operator.Xor; - gr.SetSourceRGBA (0.6, 0.6, 0.6, 0.3); + gr.SetSource (0.6, 0.6, 0.6, 0.3); gr.Rectangle (rb); gr.Fill (); gr.Operator = Operator.Over; diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index a90947a5..2d64fde1 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -28,7 +28,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; -using Cairo; +using vkvg; using System.Diagnostics; using System.Reflection; using System.Threading; @@ -332,7 +332,7 @@ namespace Crow foreach (GraphicObject c in Children) { if (!c.Visible) continue; - if (Clipping.Contains (c.Slot + ClientRectangle.Position) == RegionOverlap.Out) + if (Clipping.Contains (c.Slot + ClientRectangle.Position) == Cairo.RegionOverlap.Out) continue; c.Paint (ref gr); } @@ -349,7 +349,7 @@ namespace Crow ctx.Paint (); Clipping.Dispose(); - Clipping = new Region (); + Clipping = new Cairo.Region(); } #endregion diff --git a/src/GraphicObjects/HueSelector.cs b/src/GraphicObjects/HueSelector.cs index 67f4ec6e..ad33243d 100644 --- a/src/GraphicObjects/HueSelector.cs +++ b/src/GraphicObjects/HueSelector.cs @@ -27,7 +27,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; -using Cairo; +using vkvg; namespace Crow { diff --git a/src/GraphicObjects/Image.cs b/src/GraphicObjects/Image.cs index e83183c0..dd383fc8 100644 --- a/src/GraphicObjects/Image.cs +++ b/src/GraphicObjects/Image.cs @@ -25,7 +25,7 @@ // THE SOFTWARE. using System; -using Cairo; +using vkvg; using System.Xml.Serialization; using System.ComponentModel; using System.Diagnostics; @@ -43,7 +43,7 @@ namespace Crow Picture _pic; string _svgSub; bool scaled, keepProps; - double opacity; + float opacity; #region Public properties /// <summary> @@ -138,7 +138,7 @@ namespace Crow /// </summary> // TODO:could be moved in GraphicObject [XmlAttributeAttribute()][DefaultValue(1.0)] - public virtual double Opacity { + public virtual float Opacity { get { return opacity; } set { if (opacity == value) @@ -203,7 +203,7 @@ namespace Crow _pic.Paint (gr, ClientRectangle, _svgSub); if (Opacity<1.0) { - gr.SetSourceRGBA (0.0, 0.0, 0.0, 1.0-Opacity); + gr.SetSource (0, 0, 0, 1-Opacity); gr.Operator = Operator.DestOut; gr.Rectangle (ClientRectangle); gr.Fill (); diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs index 0e0d9fe1..da332d02 100644 --- a/src/GraphicObjects/Label.cs +++ b/src/GraphicObjects/Label.cs @@ -28,7 +28,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; -using Cairo; +using vkvg; using System.Text.RegularExpressions; using System.Xml.Serialization; using System.ComponentModel; @@ -447,14 +447,17 @@ namespace Crow if (lines == null) lines = getLines; if (!textMeasureIsUpToDate) { - using (ImageSurface img = new ImageSurface (Format.Argb32, 10, 10)) { - using (Context gr = new Context (img)) { + //using (Surface img = new Surface (CrowApplication.dev, 10, 10)) { + if (bmp == null) + bmp = new Surface (CrowApplication.dev, 10, 10); + using (Context gr = new Context (bmp)) { //Cairo.FontFace cf = gr.GetContextFontFace (); - gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); - gr.SetFontSize (Font.Size); - gr.FontOptions = Interface.FontRenderingOptions; - gr.Antialias = Interface.Antialias; + gr.FontFace = Font.Name; +// gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); +// gr.SetFontSize (Font.Size); +// gr.FontOptions = Interface.FontRenderingOptions; +// gr.Antialias = Interface.Antialias; fe = gr.FontExtents; te = new TextExtents (); @@ -476,7 +479,7 @@ namespace Crow return -1; } } - } + //} } return lt == LayoutingType.Height ? cachedTextSize.Height : cachedTextSize.Width; @@ -485,10 +488,11 @@ namespace Crow { base.onDraw (gr); - gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); - gr.SetFontSize (Font.Size); - gr.FontOptions = Interface.FontRenderingOptions; - gr.Antialias = Interface.Antialias; + gr.FontFace = Font.Name; +// gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); +// gr.SetFontSize (Font.Size); +// gr.FontOptions = Interface.FontRenderingOptions; +// gr.Antialias = Interface.Antialias; rText = new Rectangle(new Size( measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height))); diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs index d6637247..45aae6c1 100644 --- a/src/GraphicObjects/PrivateContainer.cs +++ b/src/GraphicObjects/PrivateContainer.cs @@ -27,7 +27,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; -using Cairo; +using vkvg; namespace Crow { @@ -211,7 +211,7 @@ namespace Crow ctx.SetSourceSurface (bmp, rb.X, rb.Y); ctx.Paint (); Clipping.Dispose(); - Clipping = new Region (); + Clipping = new Cairo.Region(); } #endregion diff --git a/src/GraphicObjects/ProgressBar.cs b/src/GraphicObjects/ProgressBar.cs index e8165fd2..d86e6b38 100644 --- a/src/GraphicObjects/ProgressBar.cs +++ b/src/GraphicObjects/ProgressBar.cs @@ -28,7 +28,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; -using Cairo; +using vkvg; using System.Diagnostics; using System.Xml.Serialization; using System.ComponentModel; diff --git a/src/GraphicObjects/SaturationValueSelector.cs b/src/GraphicObjects/SaturationValueSelector.cs index 485a33d2..e7da3ab7 100644 --- a/src/GraphicObjects/SaturationValueSelector.cs +++ b/src/GraphicObjects/SaturationValueSelector.cs @@ -25,7 +25,7 @@ // THE SOFTWARE. using System; -using Cairo; +using vkvg; using System.Xml.Serialization; namespace Crow diff --git a/src/GraphicObjects/Scroller.cs b/src/GraphicObjects/Scroller.cs index 30dd1480..72252c70 100644 --- a/src/GraphicObjects/Scroller.cs +++ b/src/GraphicObjects/Scroller.cs @@ -28,7 +28,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; using System.Diagnostics; -using Cairo; +using vkvg; namespace Crow { diff --git a/src/GraphicObjects/ScrollingObject.cs b/src/GraphicObjects/ScrollingObject.cs index de4b2113..893fe466 100644 --- a/src/GraphicObjects/ScrollingObject.cs +++ b/src/GraphicObjects/ScrollingObject.cs @@ -28,7 +28,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; using System.Collections; -using Cairo; +using vkvg; namespace Crow diff --git a/src/GraphicObjects/Shape.cs b/src/GraphicObjects/Shape.cs index a4b3193e..77345b31 100644 --- a/src/GraphicObjects/Shape.cs +++ b/src/GraphicObjects/Shape.cs @@ -28,7 +28,7 @@ using System.Xml.Serialization; using System.ComponentModel; using System.IO; using System.Text; -using Cairo; +using vkvg; namespace Crow { @@ -62,7 +62,7 @@ namespace Crow #endregion string path; - double strokeWidth; + float strokeWidth; public string Path { get { return path; } @@ -76,7 +76,7 @@ namespace Crow } } [XmlAttributeAttribute][DefaultValue(1.0)] - public double StokeWidth { + public float StokeWidth { get { return strokeWidth; } set { if (strokeWidth == value) @@ -113,22 +113,22 @@ namespace Crow continue; switch (c) { case 'M': - gr.MoveTo (sr.ReadDouble (), sr.ReadDouble ()); + gr.MoveTo ((float)sr.ReadDouble (), (float)sr.ReadDouble ()); break; case 'm': - gr.RelMoveTo (sr.ReadDouble (), sr.ReadDouble ()); + gr.RelMoveTo ((float)sr.ReadDouble (), (float)sr.ReadDouble ()); break; case 'L': - gr.LineTo (sr.ReadDouble (), sr.ReadDouble ()); + gr.LineTo ((float)sr.ReadDouble (), (float)sr.ReadDouble ()); break; case 'l': - gr.RelLineTo (sr.ReadDouble (), sr.ReadDouble ()); + gr.RelLineTo ((float)sr.ReadDouble (), (float)sr.ReadDouble ()); break; case 'C': - gr.CurveTo (sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble ()); + gr.CurveTo ((float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble ()); break; case 'c': - gr.RelCurveTo (sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble (), sr.ReadDouble ()); + gr.RelCurveTo ((float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble (), (float)sr.ReadDouble ()); break; case 'Z': gr.ClosePath (); @@ -145,20 +145,20 @@ namespace Crow } } } - protected override int measureRawSize (LayoutingType lt) - { - if ((lt == LayoutingType.Width && contentSize.Width == 0) || (lt == LayoutingType.Height && contentSize.Height == 0)) { - using (Surface drawing = new ImageSurface (Format.A1, 1,1)) { - using (Context ctx = new Context (drawing)) { - executePath (ctx); - Rectangle r = ctx.StrokeExtents (); - contentSize = new Size (r.Right, r.Bottom); - } - } - } - return lt == LayoutingType.Width ? - contentSize.Width + 2 * Margin: contentSize.Height + 2 * Margin; - } +// protected override int measureRawSize (LayoutingType lt) +// { +// if ((lt == LayoutingType.Width && contentSize.Width == 0) || (lt == LayoutingType.Height && contentSize.Height == 0)) { +// using (Surface drawing = new ImageSurface (Format.A1, 1,1)) { +// using (Context ctx = new Context (drawing)) { +// executePath (ctx); +// Rectangle r = ctx.StrokeExtents (); +// contentSize = new Size (r.Right, r.Bottom); +// } +// } +// } +// return lt == LayoutingType.Width ? +// contentSize.Width + 2 * Margin: contentSize.Height + 2 * Margin; +// } } } diff --git a/src/GraphicObjects/Slider.cs b/src/GraphicObjects/Slider.cs index 2bdd5b8a..33915a26 100644 --- a/src/GraphicObjects/Slider.cs +++ b/src/GraphicObjects/Slider.cs @@ -25,7 +25,7 @@ // THE SOFTWARE. using System; -using Cairo; +using vkvg; using System.Xml.Serialization; using System.ComponentModel; using System.Diagnostics; diff --git a/src/GraphicObjects/TabItem.cs b/src/GraphicObjects/TabItem.cs index 473fc313..37a33ac0 100644 --- a/src/GraphicObjects/TabItem.cs +++ b/src/GraphicObjects/TabItem.cs @@ -28,7 +28,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; using System.Diagnostics; -using Cairo; +using vkvg; using System.Linq; namespace Crow @@ -159,29 +159,29 @@ namespace Crow internal TabView savedParent = null; void makeFloating (TabView tv) { - lock (IFace.UpdateMutex) { - ImageSurface di = new ImageSurface (Format.Argb32, dis, dis); - IFace.DragImageHeight = dis; - IFace.DragImageWidth = dis; - using (Context ctx = new Context (di)) { - double div = Math.Max (LastPaintedSlot.Width, LastPaintedSlot.Height); - double s = (double)dis / div; - ctx.Scale (s, s); - if (bmp == null) - this.onDraw (ctx); - else { - if (LastPaintedSlot.Width>LastPaintedSlot.Height) - ctx.SetSourceSurface (bmp, 0, (LastPaintedSlot.Width-LastPaintedSlot.Height)/2); - else - ctx.SetSourceSurface (bmp, (LastPaintedSlot.Height-LastPaintedSlot.Width)/2, 0); - - ctx.Paint (); - } - } - IFace.DragImage = di; - } - tv.RemoveChild (this); - savedParent = tv; +// lock (IFace.UpdateMutex) { +// ImageSurface di = new ImageSurface (Format.Argb32, dis, dis); +// IFace.DragImageHeight = dis; +// IFace.DragImageWidth = dis; +// using (Context ctx = new Context (di)) { +// double div = Math.Max (LastPaintedSlot.Width, LastPaintedSlot.Height); +// double s = (double)dis / div; +// ctx.Scale (s, s); +// if (bmp == null) +// this.onDraw (ctx); +// else { +// if (LastPaintedSlot.Width>LastPaintedSlot.Height) +// ctx.SetSourceSurface (bmp, 0, (LastPaintedSlot.Width-LastPaintedSlot.Height)/2); +// else +// ctx.SetSourceSurface (bmp, (LastPaintedSlot.Height-LastPaintedSlot.Width)/2, 0); +// +// ctx.Paint (); +// } +// } +// IFace.DragImage = di; +// } +// tv.RemoveChild (this); +// savedParent = tv; } public override ILayoutable Parent { diff --git a/src/GraphicObjects/TabView.cs b/src/GraphicObjects/TabView.cs index 304e820d..339f707c 100644 --- a/src/GraphicObjects/TabView.cs +++ b/src/GraphicObjects/TabView.cs @@ -27,7 +27,7 @@ using System; using System.Xml.Serialization; using System.ComponentModel; -using Cairo; +using vkvg; using System.Diagnostics; using System.Linq; diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index 54991a41..d51268ed 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -34,7 +34,7 @@ using System.Linq; using System.Collections.Generic; using System.Text; using System.Reflection; -using Cairo; +using vkvg; namespace Crow { diff --git a/src/GraphicObjects/TextBox.cs b/src/GraphicObjects/TextBox.cs index e29ff9bf..7bfa62e0 100644 --- a/src/GraphicObjects/TextBox.cs +++ b/src/GraphicObjects/TextBox.cs @@ -25,7 +25,7 @@ // THE SOFTWARE. using System; -using Cairo; +using vkvg; using System.Diagnostics; using System.Xml.Serialization; diff --git a/src/GraphicObjects/TextRun.cs b/src/GraphicObjects/TextRun.cs index 17e3b770..1f0bb271 100644 --- a/src/GraphicObjects/TextRun.cs +++ b/src/GraphicObjects/TextRun.cs @@ -29,7 +29,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; -using Cairo; +using vkvg; using System.Text.RegularExpressions; using System.Xml.Serialization; using System.ComponentModel; @@ -259,7 +259,7 @@ namespace Crow } } - gr.FontMatrix = new Matrix (widthRatio * Font.Size, 0, 0, heightRatio * Font.Size, 0, 0); + //gr.FontMatrix = new Matrix (widthRatio * Font.Size, 0, 0, heightRatio * Font.Size, 0, 0); int curLineCount = 0; diff --git a/src/GraphicObjects/Trend.cs b/src/GraphicObjects/Trend.cs index e9d3c2d3..d1a835eb 100644 --- a/src/GraphicObjects/Trend.cs +++ b/src/GraphicObjects/Trend.cs @@ -28,7 +28,7 @@ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.ComponentModel; -using Cairo; +using vkvg; namespace Crow { @@ -156,7 +156,7 @@ namespace Crow double stepX = (double)r.Width / (double)(nbValues-1); gr.LineWidth = 1.0; - gr.SetDash (new double[]{ 1.0 },0.0); + //gr.SetDash (new double[]{ 1.0 },0.0); @@ -175,7 +175,7 @@ namespace Crow gr.MoveTo (ptrX, values [i] * scaleY); Foreground.SetAsSource (gr); - gr.SetDash (new double[]{ }, 0.0); + //gr.SetDash (new double[]{ }, 0.0); while (i >= 0) { gr.LineTo (ptrX, r.Bottom - values [i] * scaleY); |