WEB开发网
开发学院手机开发Symbian 开发 symbian bitmap 处理图片 png jpg jpeg bmp 阅读

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->Re

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;

}

}

}

上一页  1 2 

Tags:symbian bitmap 处理

编辑录入:coldstar [复制链接] [打 印]
赞助商链接