非托管代码能不能使用gdi+ 非托管代码能不能使用gdi+ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以使用GDI+#include <windows.h>#include <gdiplus.h>#include <stdio.h>using namespace Gdiplus;#pragma comment(lib, "gdiplus.lib")INT main(){ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); Image* image = new Image(L"FakePhoto.jpg"); printf("The width of the image is %u.\n", image->GetWidth()); printf("The height of the image is %u.\n", image->GetHeight()); delete image; GdiplusShutdown(gdiplusToken); return 0;} 虚拟键盘和输入框分别为不同的窗口的问题 网络数据到达 GetQueuedCompletionStatus 执行完后可以用recv 来接收数据吗? MFC中如何为菜单添加背景图片 如何发送消息修改树(SysTreeView32)的节点背景色 如何在OnMouseMove中画线? 有哪位高人研究像qq多台服务器分布式怎样做到用户的统一和登陆不同服务器的用户怎样传文件 一个菜鸟问题! 微机中可否使用DMA? 如何将自己的sql server 上的数据库导入到别人电脑上? 求带有带上下滚动条的实时的曲线绘制的控件或类 高手帮忙看下吧?? VC 的CFontDialog如何删除一部分不要的字体
#include <gdiplus.h>
#include <stdio.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")INT main()
{
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); Image* image = new Image(L"FakePhoto.jpg");
printf("The width of the image is %u.\n", image->GetWidth());
printf("The height of the image is %u.\n", image->GetHeight()); delete image;
GdiplusShutdown(gdiplusToken);
return 0;
}