ComponentFactory.Krypton.Toolkit.RenderStandard.CreatePositionPathsTop C# (CSharp) Method

CreatePositionPathsTop() private method

private CreatePositionPathsTop ( Rectangle drawRect ) : GraphicsPath
drawRect System.Drawing.Rectangle
return System.Drawing.Drawing2D.GraphicsPath
        private GraphicsPath CreatePositionPathsTop(Rectangle drawRect)
        {
            float half = (float)drawRect.Width / 2 - 0.5f;

            GraphicsPath path = new GraphicsPath();
            path.AddLines(new PointF[]{ new PointF(drawRect.X + 0.75f, drawRect.Y),
                                        new PointF(drawRect.Right - 1.75f, drawRect.Y),
                                        new PointF(drawRect.Right - 1.0f, drawRect.Y + 0.75f),
                                        new PointF(drawRect.Right - 1.0f, drawRect.Bottom - half - 1.0f),
                                        new PointF(drawRect.X + half, drawRect.Bottom - 1.0f),
                                        new PointF(drawRect.X, drawRect.Bottom - half - 1.0f),
                                        new PointF(drawRect.X, drawRect.Y + 0.75f),
                                        new PointF(drawRect.X + 0.75f, drawRect.Y)});
            return path;
        }

Same methods

RenderStandard::CreatePositionPathsTop ( Rectangle drawRect, GraphicsPath &outside, GraphicsPath &border, GraphicsPath &inside ) : void
RenderStandard