FT_Stroker_EndSubPath() private method

private FT_Stroker_EndSubPath ( IntPtr stroker ) : System.Error
stroker System.IntPtr
return System.Error
コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        /// <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);
            }
        }