FT_Stroker_ConicTo() private method

private FT_Stroker_ConicTo ( IntPtr stroker, SharpFont.FTVector &control, SharpFont.FTVector &to ) : System.Error
stroker System.IntPtr
control SharpFont.FTVector
to SharpFont.FTVector
return System.Error
Esempio n. 1
0
        /// <summary>
        /// ‘Draw’ a single quadratic Bézier in the stroker's current sub-path, from the last position.
        /// </summary>
        /// <remarks>
        /// You should call this function between <see cref="BeginSubPath"/> and <see cref="EndSubPath"/>.
        /// </remarks>
        /// <param name="control">A pointer to a Bézier control point.</param>
        /// <param name="to">A pointer to the destination point.</param>
        public void ConicTo(FTVector control, FTVector to)
        {
            Error err = FT.FT_Stroker_ConicTo(Reference, ref control, ref to);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// ‘Draw’ a single quadratic Bézier in the stroker's current sub-path, from the last position.
        /// </summary>
        /// <remarks>
        /// You should call this function between <see cref="BeginSubPath"/> and <see cref="EndSubPath"/>.
        /// </remarks>
        /// <param name="control">A pointer to a Bézier control point.</param>
        /// <param name="to">A pointer to the destination point.</param>
        public void ConicTo(FTVector control, FTVector to)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Stroker", "Cannot access a disposed object.");
            }

            Error err = FT.FT_Stroker_ConicTo(Reference, ref control, ref to);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }