FT_Outline_Get_Orientation() private method

private FT_Outline_Get_Orientation ( IntPtr outline ) : Orientation
outline System.IntPtr
return Orientation
Esempio n. 1
0
        /// <summary><para>
        /// This function analyzes a glyph outline and tries to compute its fill orientation (see
        /// <see cref="Orientation"/>). This is done by computing the direction of each global horizontal and/or
        /// vertical extrema within the outline.
        /// </para><para>
        /// Note that this will return <see cref="Orientation.TrueType"/> for empty outlines.
        /// </para></summary>
        /// <returns>The orientation.</returns>
        public Orientation GetOrientation()
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Outline", "Cannot access a disposed object.");
            }

            return(FT.FT_Outline_Get_Orientation(reference));
        }
Esempio n. 2
0
 /// <summary><para>
 /// This function analyzes a glyph outline and tries to compute its fill orientation (see
 /// <see cref="Orientation"/>). This is done by computing the direction of each global horizontal and/or
 /// vertical extrema within the outline.
 /// </para><para>
 /// Note that this will return <see cref="Orientation.TrueType"/> for empty outlines.
 /// </para></summary>
 /// <returns>The orientation.</returns>
 public Orientation GetOrientation() => FT.FT_Outline_Get_Orientation(Reference);