System.Drawing.Drawing2D.HatchBrush.HatchCheckered C# (CSharp) Method

HatchCheckered() static private method

static private HatchCheckered ( CGContext context ) : void
context CGContext
return void
        void HatchCheckered(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);

            context.SetFillColor(foreColor.ToCGColor());

            CGRect rect = new CGRect (0,0,hatchWidth / 2.0f,hatchHeight / 2.0f);
            setPixels(context, rect);

            rect.X = hatchWidth / 2.0f;
            rect.Y = hatchHeight / 2.0f;
            setPixels(context, rect);
        }