Table of Contents

Method LogDrawAction

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

LogDrawAction(double, Func<Graphics, SizeD>, Action<Graphics>?)

Logs draw action to log.

public static void LogDrawAction(double scaleFactor, Func<Graphics, SizeD> sizeAndDrawFunc, Action<Graphics>? drawAction = null)

Parameters

scaleFactor double

Scale factor to use when draw action is called.

sizeAndDrawFunc Func<Graphics, SizeD>

Function which calculates drawable element. Called with measure Graphics which can measure text size.

drawAction Action<Graphics>

Action which draws an element. If Null, sizeAndDrawFunc is used for drawing with Graphics created on the Bitmap. sizeAndDrawFuncOptional.