GDI+配置
来源:互联网 发布:传奇永恒网络不稳定 编辑:程序博客网 时间:2024/05/22 19:23
添加头文件:#include <gdiplus.h>using namespace Gdiplus;#pragma comment(lib,"Gdiplus.lib")使用GdiplusStartup函数初始化实例#include<tchar.h> #include<windows.h> #include <Gdiplus.h>using namespace Gdiplus;#pragma comment(lib,"gdiplus.lib")extern "C" WINBASEAPI HWND WINAPI GetConsoleWindow (); int main(int argc,char *argv[]) { HWND hwnd; HDC hdc; ULONG_PTR token; GdiplusStartupInput input; GdiplusStartup(&token,&input,NULL); hwnd = GetConsoleWindow(); hdc = GetDC(hwnd); Graphics g(hdc); Image image(L"E:\\picture\\gssef.jpg"); g.DrawImage (&image,0,0); ReleaseDC(hwnd,hdc); return 0; }
0 0
- 配置gdi+
- 配置GDI+
- GDI+配置
- VC2005 GDI+编程 -- 配置
- vc6.0 配置GDI+
- GDI+配置(vs2008)
- GDI+配置(收藏)
- GDI+ 安装、配置、使用
- vc6.0配置gdi+
- Gdi+的配置
- VS2008中配置GDI+
- VS2010中GDI+配置
- GDI+ 之环境配置
- mfc中的GDI配置
- VS2008 MFC 配置GDI+
- GDI+开发环境配置
- GDI+ GDIPlus 的配置
- VS2010中GDI+配置
- 织梦DedeCMS会员注册邮件(E-mail)验证设置
- C# 类型初始值设定项引发异常
- 2014.10.11
- mysql之数据库不能删除问题
- Wireshark基本介绍和学习TCP三次握手
- GDI+配置
- iOS的相对路径和绝对路径
- MFC怎么让图片适应picture control控件的大小
- 纯英文长短信编码
- 图像转换测试字符串
- PowerDesigner设计数据库及导出数据库文件相关问题
- Ajax请求中的async:false/true的作用
- C语言中的字符串常量
- 数据库连接池从c3p0迁移到druid