-
c++,显示图像
IPicture接口对象的创建
方法1:直接通过文件创建
LPCSTR szFileUrl;
IPicture *pIPicture;
OleLoadPicturePath(CComBSTR(szFileUrl),
(LPUNKNOWN)NULL,
0,
0,
IID_IPicture,
(LPVOID*)&pIPicture))
方法2:通过IStream来创建
// 加载电子地图
LPCSTR szFileUrl;
IStream *pStream = NULL;
IPicture *pIPicture = NULL;;
CFileStatus fstatus;
CFile file;
LONG lFileSize;
HGLOBAL hGlobal;
if(file.Open(szFileUrl, CFile::modeRead) && file.GetStatus(szFileUrl, fstatus)
&& ((lFileSize = fstatus.m_size) != -1))
{
hGlobal = GlobalAlloc(GMEM_MOVEABLE, lFileSize);// 开辟大内存
if(hGlobal != NULL)
{
LPVOID pvData = NULL;
&nb
- 2022-01-26 14:55:37下载
- 积分:1
-
OnvifOperation
基于Onvif C/C++开发环境 搜索Onvif设备,鉴权,并获取所以查找到设备的Rtsp地址(Based Onvif C/C++ development environment search Onvif equipment, authentication, and get so find the equipment Rtsp address)
- 2015-06-23 20:39:24下载
- 积分:1
-
I2c
arduino库函数有关I2C的库函数I2C模块使用教程(arduino
I2C library function library function I2C module using tutorial)
- 2018-06-26 17:12:54下载
- 积分:1
-
swTsfTKC
说明: Code in C what need swTsfTKC
- 2019-03-06 05:28:43下载
- 积分:1
-
tiaoshi1
计算机图像处理,MFC实现图像的直方图显示、直方图的均衡化,以及中值滤波等功能(Computer image processing, MFC histogram of image display, histogram equalization and median filter and other functions)
- 2010-10-19 13:10:31下载
- 积分:1
-
Cholesky
Cholesky分解的C语言程序,当年的大学作业程序(C source code for Cholesky Method)
- 2021-01-07 15:08:53下载
- 积分:1
-
DTW
时间规整函数,从Matlab修改过来,在XP环境下调试成功(Time warping function, changes come from the Matlab, in the XP environment to debug the success of)
- 2010-02-22 14:49:18下载
- 积分:1
-
printer
打印功能模仿,和模拟打印机差不多的东西,不是自己编写的。(Print function to imitate, and simulation similar printer, not something I have written.)
- 2009-04-23 20:38:51下载
- 积分:1
-
hjghjgjghg
单片机课程设计
电子压力器的工作原理
电子压力器由压力传感器,A/D转换器,数码显示等组成。
(MCU Design pressure of the working principle electronic pressure is controlled by electronic pressure sensor, A/D converter, digital display and other components.)
- 2011-05-27 16:47:18下载
- 积分:1
-
Beamforming
Beamforming File C code
- 2009-08-13 13:39:22下载
- 积分:1