symbian bitmap 处理图片 png jpg jpeg bmp
2010-07-04 15:33:00 来源:WEB开发网bitmap->UnlockHeap(ETrue);
if(bitmapaddress != NULL) break;
}
case 1:
{
delete bitmap;
bitmap = NULL;
reductionFactor = 2; //
User::LeaveIfError(iImageDecoder->ReducedSize(
iImageDecoder->FrameInfo().iOverallSizeInPixels,
reductionFactor, decodeimagesize ) );
bitmap = new (ELeave) CFbsBitmap();
bitmap->Create( decodeimagesize, iImageDecoder->FrameInfo().iFrameDisplayMode);
bitmap->LockHeap(ETrue);
bitmapaddress = (TUint8*)bitmap->DataAddress();
bitmap->UnlockHeap(ETrue);
if(bitmapaddress != NULL) break;
}
case 2:
{
reductionFactor = 3; //
User::LeaveIfError(iImageDecoder->ReducedSize(
iImageDecoder->FrameInfo().iOverallSizeInPixels,
reductionFactor, decodeimagesize ) );
bitmap = new (ELeave) CFbsBitmap();
bitmap->Create( decodeimagesize, iImageDecoder->FrameInfo().iFrameDisplayMode);
bitmap->LockHeap(ETrue);
bitmapaddress = (TUint8*)bitmap->DataAddress();
bitmap->UnlockHeap(ETrue);
if(bitmapaddress != NULL) break;
}
case 3:
default:
{
delete iImageDecoder; iImageDecoder = NULL;
delete bitmap;
bitmap = NULL;
return KErrNoMemory;
}
}
}
- ››处理报错:java/lang/NoClassDefFoundError: java...
- ››Symbian S60 SocketConnection参数
- ››Symbian乏力:2010年诺基亚悲情大事记
- ››Symbian三大升级开启2011年新战略
- ››Symbian/Android/iOS/WM安装包对比
- ››Symbian一个活动对象的测试例子
- ››Symbian ListBox控件
- ››Symbian下自动切换SDK的批处理代码
- ››Symbian 3 版的 Swype 输入法正式上架
- ››Symbian中的设计模式
- ››Symbian S60平台JAVA开发环境搭建步骤
- ››Symbian自定义控件—如何实现跑马灯效果
更多精彩
赞助商链接