FT_Stroker_GetCounts() private method

private FT_Stroker_GetCounts ( IntPtr stroker, uint &anum_points, uint &anum_contours ) : System.Error
stroker System.IntPtr
anum_points uint
anum_contours uint
return System.Error
Example #1
0
        /// <summary>
        /// Call this function once you have finished parsing your paths with the stroker. It returns the number of
        /// points and contours necessary to export all points/borders from the stroked outline/path.
        /// </summary>
        /// <param name="pointsCount">The number of points.</param>
        /// <param name="contoursCount">The number of contours.</param>
        public void GetCounts(out uint pointsCount, out uint contoursCount)
        {
            Error err = FT.FT_Stroker_GetCounts(Reference, out pointsCount, out contoursCount);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
Example #2
0
        public void GetCounts(out uint pointsCount, out uint contoursCount)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Stroker", "Cannot access a disposed object.");
            }

            Error err = FT.FT_Stroker_GetCounts(Reference, out pointsCount, out contoursCount);

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