IMSL C# Numerical Library

FillPaint.DiamondHatch Method 

Returns a crosshatch pattern on a 45 degree angle.

public static Brush DiamondHatch(
   int n,
   int p,
   Color colorBackground,
   Color colorLine
);

Parameters

n
An int that specifies the pattern size in pixels.
p
An int which specifies the number of pixels between the crosshatched lines.
colorBackground
A Color which specifies the background color.
colorLine
A Color which specifies the color of the line.

Return Value

A Brush containing the pattern.

See Also

FillPaint Class | Imsl.Chart2D Namespace