FT_Get_Glyph() private méthode

private FT_Get_Glyph ( IntPtr slot, IntPtr &aglyph ) : System.Error
slot System.IntPtr
aglyph System.IntPtr
Résultat System.Error
Exemple #1
0
        /// <summary>
        /// A function used to extract a glyph image from a slot. Note that the created <see cref="Glyph"/> object must
        /// be released with <see cref="Glyph.Dispose()"/>.
        /// </summary>
        /// <returns>A handle to the glyph object.</returns>
        public Glyph GetGlyph()
        {
            IntPtr glyphRef;
            Error  err = FT.FT_Get_Glyph(Reference, out glyphRef);

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

            return(new Glyph(glyphRef, Library));
        }