Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Changes in Drawable

$
0
0
Never mind. I figured this out. Not sure why I was having so much difficulty doing so bot for anyone that is interested the drawable class seems to have been replaced with the IDrawable class and the DrawableDashArray is now DrawableStrokeDashArray.
 int DestWidth = DestinationImage.Width;
            int DestHeight = DestinationImage.Height;
            int LineThickness = 1;

            // List<Drawable> Outline = new List<Drawable>();
            List<IDrawable> Outline = new List<IDrawable>();

            Outline.Add(new DrawableStrokeColor(Color.LightGray));
            if (useDashedLinesToolStripMenuItem.Checked)
            {
                
                double[] dash = new double[] { 10, 10 };
               // Outline.Add(new DrawableDashArray(dash));
                Outline.Add(new DrawableStrokeDashArray(dash));
            }

            Outline.Add(new DrawableStrokeWidth(LineThickness));
            Outline.Add(new DrawableLine(LineThickness, LineThickness, DestWidth - LineThickness, LineThickness));
            Outline.Add(new DrawableLine(DestWidth - LineThickness, LineThickness, DestWidth - LineThickness, DestHeight - LineThickness));
            Outline.Add(new DrawableLine(DestWidth - LineThickness, DestHeight - LineThickness, LineThickness, DestHeight - LineThickness));
            Outline.Add(new DrawableLine(1, DestHeight - LineThickness, LineThickness, LineThickness));
            DestinationImage.Draw(Outline);

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>