void HatchZigZag(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 = hatchWidth / 2.0f;
hatchHeight -= 1;
context.MoveTo(0, 0);
context.AddLineToPoint(halfMe-1, hatchHeight);
context.StrokePath();
context.MoveTo(halfMe+1,hatchHeight);
context.AddLineToPoint(hatchWidth, 0);
context.StrokePath();
}