// _LIT(Ktxt,"SymbianDll.DLL");//宏定义指定要调用的dll
// RLibrary library;//调用库函数类
// TFileName file;
// RFs fs;
// HBufC8* nBuffer = HBufC8::NewL(32);
// CBitmapScaler* nScaler = CBitmapScaler::NewL();
// EntryPointfuncPtr decode_barcode = NULL;
// CFbsBitmap* nDestBitmap = new(ELeave) CFbsBitmap();
// CleanupStack::PushL(nDestBitmap);
// User::LeaveIfError(nDestBitmap->Create(TSize(640, 480), EGray256));
// nScaler->Scale(&iStatus, *iBitmapSave, *nDestBitmap);
// nDestBitmap->Save(*aNewFilePathAndName);
// User::LeaveIfError(fs.Connect());
// file=Ktxt;
// User::LeaveIfError(library.Load(file));//如果失败就退出
//
// decode_barcode = (EntryPointfuncPtr)library.Lookup ( 1 );
// decode_barcode(nDestBitmap,640,480,nBuffer);
// library.Close();//关闭调用
本文介绍了一种在Symbian系统中通过DLL调用进行图像处理的方法,包括创建位图、调整图像大小及读取条形码等功能的实现。
4

被折叠的 条评论
为什么被折叠?



