/// <summary> /// Close the current sub-path in the stroker. /// </summary> /// <remarks> /// You should call this function after <see cref="BeginSubPath"/>. If the subpath was not ‘opened’, this /// function ‘draws’ a single line segment to the start position when needed. /// </remarks> public void EndSubPath() { Error err = FT.FT_Stroker_EndSubPath(Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }
/// <summary> /// Close the current sub-path in the stroker. /// </summary> /// <remarks> /// You should call this function after <see cref="BeginSubPath"/>. If the subpath was not ‘opened’, this /// function ‘draws’ a single line segment to the start position when needed. /// </remarks> public void EndSubPath() { if (disposed) { throw new ObjectDisposedException("Stroker", "Cannot access a disposed object."); } Error err = FT.FT_Stroker_EndSubPath(Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }