DiagramColorRules

StockSharp.Xaml.Diagram.Controls

The colours a diagram picks by itself, so that what it draws on a colour of the host can be read.

方法

ReadableOutlineOn
public static Color ReadableOutlineOn(Color canvas)
result = DiagramColorRules.ReadableOutlineOn(canvas)

Outline for a shape drawn on the given canvas.

canvas
What the shape sits on.

返回值: The outline colour.

ReadableTextOn
public static Color ReadableTextOn(Color fill)
result = DiagramColorRules.ReadableTextOn(fill)

Title colour for a body filled with the given colour.

fill
The body's fill.

返回值: The title colour.