Click or drag to resize
CanvasDrawingSessionFlush Method
Sends any pending drawing commands to the graphics device.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void Flush()
Remarks

In normal usage it is not necessary to call Flush, since the Flush happens automatically when you close the drawing session.

There's a cost associated with each command submitted to the graphics device, so the drawing session groups together multiple drawing operations into batches. When the drawing session is closed the last batch is sent to the device. This method can be used to force all pending commands to be sent to the device without closing the session.

See Also