Table of Contents

Method Close

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Close()

Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.

void Close()

Remarks

Do not close the geometry sink while a figure is still in progress; doing so puts the geometry sink in an error state. For the close operation to be successful, there must be one EndFigure(FigureEnd) call for each call to BeginFigure(Point2Float, FigureBegin)

After calling this method, the geometry sink might not be usable. Direct2D implementations of this interface do not allow the geometry sink to be modified after it is closed, but other implementations might not impose this restriction.