/// <summary> /// Draw a Ruler. /// </summary> /// <param name="drawingSession"> The drawing-session. </param> /// <param name="canvasTransformer"> The canvas-transformer. </param> /// <param name="rulerWidth"> The width of the ruler. </param> /// <param name="rulerLine"> The distance between two lines. </param> /// <param name="rulerThickLine"> The distance between two thick lines. </param> /// <param name="rulerBackgroundColor"> The color of the ruler background color. </param> /// <param name="rulerColor"> The color of the ruler. </param> /// <param name="rulerLineColor"> The color of the ruler line. </param> /// <param name="rulerThickLineColor"> The color of the ruler thick line. </param> /// <param name="textColor"> The color of the text. </param> /// <param name="textFormat"> The format of the text. </param> public static void DrawRuler(this CanvasDrawingSession drawingSession, CanvasTransformer canvasTransformer, float rulerWidth, float rulerLine, float rulerThickLine, Windows.UI.Color rulerBackgroundColor, Windows.UI.Color rulerColor, Windows.UI.Color rulerLineColor, Windows.UI.Color rulerThickLineColor, Windows.UI.Color textColor, CanvasTextFormat textFormat) => CanvasDrawingSessionExtensions.DrawRulerCore(drawingSession, canvasTransformer, rulerWidth, rulerLine, rulerThickLine, rulerBackgroundColor, rulerColor, rulerLineColor, rulerThickLineColor, textColor, textFormat);
/// <summary> /// Draw a Ruler. /// </summary> /// <param name="drawingSession"> The drawing-session. </param> /// <param name="canvasTransformer"> The canvas-transformer. </param> public static void DrawRuler(this CanvasDrawingSession drawingSession, CanvasTransformer canvasTransformer) => CanvasDrawingSessionExtensions.DrawRulerCore(drawingSession, canvasTransformer, CanvasDrawingSessionExtensions.RulerWidth, CanvasDrawingSessionExtensions.RulerLine, CanvasDrawingSessionExtensions.RulerThickLine, CanvasDrawingSessionExtensions.RulerBackgroundColor, CanvasDrawingSessionExtensions.RulerColor, CanvasDrawingSessionExtensions.RulerLineColor, CanvasDrawingSessionExtensions.RulerThickLineColor, CanvasDrawingSessionExtensions.TextColor, CanvasDrawingSessionExtensions.TextFormat);