public static extern bool XLGP_CheckBitmap(IntPtr luaState, int index, ref IntPtr lpBitmap);
public static IntPtr GetBitmap(this IntPtr L, int index) { IntPtr bitmap = IntPtr.Zero; XLGraphics.XLGP_CheckBitmap(L, index, ref bitmap); return(bitmap); }