wglUseFontOutlines

C# Signature:

[DllImport("opengl32", EntryPoint = "wglUseFontOutlines", CallingConvention=CallingConvention.Winapi)]
public static extern bool wglUseFontOutlines(
IntPtr hDC,
[MarshalAs(UnmanagedType.U4)] UInt32 first,
[MarshalAs(UnmanagedType.U4)] UInt32 count,
[MarshalAs(UnmanagedType.U4)] UInt32 listBase,
[MarshalAs(UnmanagedType.R4)] Single deviation,
[MarshalAs(UnmanagedType.R4)] Single extrusion,
[MarshalAs(UnmanagedType.I4)] Int32 format,
[Out] Gdi.GLYPHMETRICSFLOAT[] lpgmf);

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public struct GLYPHMETRICSFLOAT 
{
    public Single      gmfBlackBoxX;
    public Single      gmfBlackBoxY;
    public POINTFLOAT  gmfptGlyphOrigin;
    public Single      gmfCellIncX;
    public Single      gmfCellIncY;
}

public struct POINTFLOAT
{
    public Single      x;
    public Single      y;
}

VB Signature:

Sample Code:

Última actualización