IMSL C# Numerical Library

FillPaint.Diamond Method 

Returns a diamond pattern (a checkerboard rotated 45 degrees).

public static Brush Diamond(
   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 line thickness.
colorBackground
A Color which specifies the background color.
colorLine
A Color which specifies the color of the line.

Return Value

A Brush containing the diamond pattern.

See Also

FillPaint Class | Imsl.Chart2D Namespace