资源简介
制作图片合成的小程序
代码片段和文件信息
/*
* ============================================================================
* Name : CImageSaverEngine from ImageSaverEngine.cpp
* Part of : ImageSaver
* Created : 30.01.2006 by ToBeReplacedByAuthor
* Implementation notes:
*
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
// INCLUDE FILES
#include
#include “ImageSaverEngine.h“
// ================= MEMBER FUNCTIONS =======================
// Two-phased constructor.
CImageSaverEngine* CImageSaverEngine::NewL(MObserver& aObserver)
{
CImageSaverEngine* self = new(ELeave) CImageSaverEngine(aObserver);
CleanupStack::PushL( self );
self->ConstructL();
CleanupStack::Pop();
return self;
}
// destructor
CImageSaverEngine::~CImageSaverEngine()
{
DoCancel();
}
// constructor
CImageSaverEngine::CImageSaverEngine(MObserver& aObserver ) :
CActive(EPriorityStandard) iObserver(aObserver)
{
}
// EPOC default constructor can leave.
void CImageSaverEngine::ConstructL()
{
CActiveScheduler::Add( this );
}
void CImageSaverEngine::RunL()
{
iObserver.OnCompleteL(iStatus.Int());
DoCancel();
}
void CImageSaverEngine::DoCancel()
{
if(iImageEncoder!=NULL)
{
iImageEncoder->Cancel();
}
delete iImageEncoder;
iImageEncoder = NULL;
delete iframeImageData;
iframeImageData = NULL;
}
void CImageSaverEngine::SaveL(CFbsBitmap& aBitmap const TFileName& aFileName)
{
DoCancel();
_LIT8(KJpgMime “image/jpeg“);
iImageEncoder = CImageEncoder::FileNewL(CCoeEnv::Static()->FsSession() aFileName KJpgMime());
// Setup the jpg saving information that is required.
TJpegImageData* jpegImageData = new (ELeave) TJpegImageData;
CleanupStack::PushL(jpegImageData);
// Set specific format data
jpegImageData->iQualityFactor = 95;
jpegImageData->iSampleScheme = TJpegImageData::EColor444;
iframeImageData = CframeImageData::NewL();
// Ownership passed to iframeImageData after AppendImageData
User::LeaveIfError(iframeImageData->AppendImageData(jpegImageData));
CleanupStack::Pop(jpegImageData);
// Convert
iImageEncoder->Convert(&iStatus aBitmap iframeImageData);
SetActive();
}
// End of File
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1369 2009-03-30 18:32 CreatBitmap\.cdtproject
文件 736 2009-03-30 18:32 CreatBitmap\.project
文件 1100 2009-03-30 18:32 CreatBitmap\.settings\.carbide_build_settings
文件 106 2009-03-30 18:32 CreatBitmap\.settings\org.eclipse.cdt.core.prefs
文件 3016 2009-03-27 10:43 CreatBitmap\aif\context_pane_icon.bmp
文件 414 2009-03-27 10:43 CreatBitmap\aif\context_pane_icon_mask.bmp
文件 475 2009-03-27 10:43 CreatBitmap\aif\CreatBitmapaif.rss
文件 2356 2009-03-27 10:43 CreatBitmap\aif\list_icon.bmp
文件 294 2009-03-27 10:43 CreatBitmap\aif\list_icon_mask.bmp
..A.SH. 8704 2009-03-27 10:54 CreatBitmap\aif\Thumbs.db
文件 50454 2009-03-30 15:02 CreatBitmap\data\chiqingzheng.bmp
文件 2770 2009-03-31 10:58 CreatBitmap\data\CreatBitmap.rss
文件 471 2009-03-27 10:43 CreatBitmap\data\CreatBitmap_caption.rss
文件 6966 2006-01-30 21:32 CreatBitmap\data\Face.bmp
文件 446 2006-01-30 23:35 CreatBitmap\data\FaceMask.bmp
文件 1654 2009-03-31 09:55 CreatBitmap\data\xu.bmp
文件 335 2009-03-27 10:53 CreatBitmap\group\ABLD.BAT
文件 452 2009-03-27 10:43 CreatBitmap\group\bld.inf
文件 1305 2009-03-31 17:03 CreatBitmap\group\CreatBitmap.mmp
文件 818 2009-03-27 10:43 CreatBitmap\help\build_help.mk
文件 548 2009-03-27 10:43 CreatBitmap\help\CreatBitmap.cshlp
文件 3066 2009-03-31 18:15 CreatBitmap\help\CreatBitmap.hlp
文件 218 2009-03-31 18:15 CreatBitmap\help\CreatBitmap.hlp.hrh
文件 491 2009-03-27 10:43 CreatBitmap\help\CreatBitmap.xm
文件 660 2009-03-27 10:43 CreatBitmap\help\Custom.xm
文件 1341 2009-03-31 18:15 CreatBitmap\help\temp\CreatBitmap.cshlp.xm
文件 616 2009-03-27 10:43 CreatBitmap\inc\CreatBitmap.hrh
文件 1029 2009-03-31 10:57 CreatBitmap\inc\CreatBitmap.loc
文件 1019 2009-03-31 10:57 CreatBitmap\inc\CreatBitmap.loc.bak
文件 1093 2009-03-27 10:43 CreatBitmap\inc\CreatBitmapApp.h
............此处省略24个文件信息
相关资源
- c 操作sqlite数据库.cpp
- Beginning C++17 5th Edition.pdf56911
- 基于空调项目的Autosar 架构的设计.d
- 使用 IBM Rational Systems Developer 和 Rati
- 《Data Structures and Algorithm Analysis in C
- 高效FFT的C/C++代码实现包括基2的DIF和
- C++入门经典(第9版) ([美]Walter Sa
- AppGameKit安装包
- AES-128-CBC算法C语言源码已经修改,可
- Kinect手势控制鼠标
- 坦克大战90源程序代码 精确到象素级
- 求点介数C++实现 Betweenness Centrality
- 使用C/C++读取BITMAP的内容
-
Unreal Engine 4 sc
ripting with C++ Cookbook - Data Structures and Algorithm Analysis in C++
- 《测试驱动的嵌入式C语言开发》源码
- Effective C++ 中文版2nd Edition
- celrityC/C++源码查看工具
- 成都理工大学2018unity试题
- C How to Program 7th Edition
- C++ Concurrency in Action 2nd Edition (2019.
- C++写太阳/月球坐标计算,在地固坐标
- 完整版sqlite运行所需Vc++运行环境,纯
- Practical C++ Design From Programming to Archi
- C++ Concurrency in Action- 2nd Edition(英文第
- C++ Primer(5th)2017Edition 无水印pdf
- 使用itextsharp.dll把两个pdf文件合并成一
- Programming Windows with MFC随书光盘源代码
- MultiThread(VS2013 MFC多线程-含源码-含个
- 曲线拟合C语言实现
评论
共有 条评论