FT_Get_Renderer() private method

private FT_Get_Renderer ( IntPtr library, GlyphFormat format ) : IntPtr
library System.IntPtr
format GlyphFormat
return System.IntPtr
Ejemplo n.º 1
0
        public Renderer GetRenderer(GlyphFormat format)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Library", "Cannot access a disposed object.");
            }

            return(new Renderer(FT.FT_Get_Renderer(Reference, format)));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Retrieve the current renderer for a given glyph format.
 /// </summary>
 /// <remarks><para>
 /// An error will be returned if a module already exists by that name, or if the module requires a version of
 /// FreeType that is too great.
 /// </para><para>
 /// To add a new renderer, simply use <see cref="AddModule"/>. To retrieve a renderer by its name, use
 /// <see cref="GetModule"/>.
 /// </para></remarks>
 /// <param name="format">The glyph format.</param>
 /// <returns>A renderer handle. 0 if none found.</returns>
 public Renderer GetRenderer(GlyphFormat format) =>
 new Renderer(FT.FT_Get_Renderer(Reference, format));