FT_Outline_New() private method

private FT_Outline_New ( IntPtr library, uint numPoints, int numContours, IntPtr &anoutline ) : System.Error
library System.IntPtr
numPoints uint
numContours int
anoutline System.IntPtr
return System.Error
Exemplo n.º 1
0
        private static IntPtr NewOutline(Library library, uint pointsCount, int contoursCount)
        {
            Error err = FT.FT_Outline_New(library.Reference, pointsCount, contoursCount, out var reference);

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

            return(reference);
        }
Exemplo n.º 2
0
        public Outline(Library library, uint pointsCount, int contoursCount)
        {
            IntPtr reference;
            Error  err = FT.FT_Outline_New(library.Reference, pointsCount, contoursCount, out reference);

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

            parentLibrary = library;
            parentLibrary.AddChildOutline(this);
        }