System.Drawing.Drawing2D.HatchBrush.HatchDashedDiagonal C# (CSharp) Метод

HatchDashedDiagonal() статический приватный Метод

static private HatchDashedDiagonal ( CGContext context ) : void
context CGContext
Результат void
        void HatchDashedDiagonal(CGContext context)
        {
            var hatchWidth = getHatchWidth (hatchStyle);
            var hatchHeight = getHatchHeight (hatchStyle);
            var lineWidth = getLineWidth (hatchStyle);

            initializeContext(context, hatchHeight, false);

            /* draw background */
            drawBackground (context, backColor, hatchWidth, hatchHeight);

            /* draw lines in the foreground color */
            context.SetStrokeColor(foreColor.ToCGColor());
            context.SetLineWidth(lineWidth);
            context.SetLineCap(CGLineCap.Square);

            float halfMe = hatchHeight / 2.0f;

            context.MoveTo(0, halfMe);
            context.AddLineToPoint(hatchWidth, hatchHeight);
            context.StrokePath();
        }