社区
C++ Builder
帖子详情
多文档主程序如果加背景图片,要求是JPG格式的,怎么加呢?
mygodness
2003-08-24 11:04:59
要求如题,谢谢了..
...全文
99
4
打赏
收藏
多文档主程序如果加背景图片,要求是JPG格式的,怎么加呢?
要求如题,谢谢了..
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wangjue28
2003-08-24
打赏
举报
回复
#include <jpeg.hpp>
TJPEGImage *Jpg = new TJPEGImage () ;
Jpg ->LoadFromFile("c:\\tmp\\lll.jpg") ;
Image1->Picture->Bitmap->Assign ( Jpg ) ;
delete Jpg ;
mygodness
2003-08-24
打赏
举报
回复
拜托了哦...
lzwcom
2003-08-24
打赏
举报
回复
//---h----
IPicture* pPicture;
//--cpp---
LoadPicture(sFileName,&pPicture);
...
OnDraw(CDC* pDC)
{
CRect rc;
GetClientRect(&rc)
long width,height;
pPicture->get_Width(&width);
pPicture->get_Height(&height);
pPicture->Render(pDC->GetSafeHdc(),rc.left,rc.top,rc.Width(),rc.Height(),
0,height,width,-height,NULL)
}
// The implement of LoadPicture
BOOL LoadPicture(LPCTSTR szFile,IPicture** ppPicture)
{
IStream* pStream;
HGLOBAL hGlobal = NULL;
try
{
CFile file;
if(!file.Open(szFile,CFile::modeRead))
{
return FALSE;
}
DWORD dwSize = file.GetLength();
hGlobal = GlobalAlloc(GMEM_MOVEABLE | GMEM_NODISCARD,dwSize);
if(hGlobal == NULL)
{
return FALSE;
}
char* pData = (char*)GlobalLock(hGlobal);
file.Read(pData,dwSize);
GlobalUnlock(hGlobal);
file.Close();
if(FAILED(CreateStreamOnHGlobal(hGlobal,FALSE,&pStream)))
{
GlobalFree(hGlobal);
return FALSE;
}
if(FAILED(OleLoadPicture(pStream,dwSize,FALSE,IID_IPicture,(LPVOID*)ppPicture)))
{
pStream->Release();
GlobalFree(hGlobal);
return FALSE;
}
pStream->Release();
GlobalFree(hGlobal);
}
catch(CFileException& e)
{
if(pStream != NULL)
pStream->Release();
if(hGlobal!=NULL)
GlobalFree(hGlobal);
return FALSE;
}
catch(...)
{
if(pStream != NULL)
pStream->Release();
if(hGlobal!=NULL)
GlobalFree(hGlobal);
return FALSE;
}
return TRUE;
}
mygodness
2003-08-24
打赏
举报
回复
试试哦..先行谢过..
红翻天集合指标.zip
红翻天集合指标
costas环载波同步在matlab平台上的开发与实现
下载前必看:https://pan.quark.cn/s/a4b39357ea24 MIMO-OFDM-Wireless-Communications-with-MATLAB MATLAB Code for MIMO-OFDM Wireless Communications with MATLAB Cover Book Name: MIMO-OFDM Wireless Communications with MATLAB㈢ 中文版书名:MIMO-OFDM无线通信技术及MATLAB实现 Author: Yong Soo Cho, Jaekwon Kim, Won Young Yang and Chung G. Kang Official Website: http://www.wiley.com//legacy/wileychi/cho/ Buy this Book:https://item.jd.com/11255583.html 代码打包下载:MIMO-OFDM-Wireless-Communications-with-MATLAB-backup201703031327.7z 注: 添
加
了部分中文注释、写明了部分代码所对应的公式页码(中文版) 书还没有全部看完,所以注释不完整 Still In Progress
stdafx.h文件(项目用)
已经博主授权,源码转载自 https://pan.quark.cn/s/94891f94663b pct AppVeyor build Pct (PreCompiled header tool) aims to be a bag of tools to help reducing and analysing C/C++ compilation times. There is only one tool for now, extractheaders. extractheaders Analyses C / C++ files to generate a precompiled header. It can get its input from Visual Studio project files (.vcxproj and .sln) or they can be specified explicitly through command line options. The precompiled header will consist of the standard headers that are included in the provided files (or any header included by the files recursively). It uses Boost Wave Preprocessor under the hood. extractheaders can read Visual Studio project files with the options --sln and --vcxproj. E.g. -sln c:\\path\\...
filter-scans.pcd
filter-scans.pcd
通过源面板方法模拟翼型周围的压力场分布.zip
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
C++ Builder
13,873
社区成员
102,696
社区内容
发帖
与我相关
我的任务
C++ Builder
C++ Builder相关内容讨论区
复制链接
扫一扫
分享
社区描述
C++ Builder相关内容讨论区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章