FT_Outline_New_Internal() приватный Метод

private FT_Outline_New_Internal ( IntPtr memory, uint numPoints, int numContours, IntPtr &anoutline ) : System.Error
memory System.IntPtr
numPoints uint
numContours int
anoutline System.IntPtr
Результат System.Error
Пример #1
0
        private static IntPtr NewOutline(Memory memory, uint pointsCount, int contoursCount)
        {
            Error err = FT.FT_Outline_New_Internal(memory.Reference, pointsCount, contoursCount, out var reference);

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

            return(reference);
        }
Пример #2
0
        public Outline(Memory memory, uint pointsCount, int contoursCount)
        {
            IntPtr reference;
            Error  err = FT.FT_Outline_New_Internal(memory.Reference, pointsCount, contoursCount, out reference);

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

            parentMemory = memory;             //TODO Should Memory be disposable as well?
        }