关于在symbian listbox中添加svg图片的问题
2010-05-31 20:19:00 来源:WEB开发网{
// Use size from the image header. In case of SVG,
// we preserve the image data for a while longer, since ordinarily
// it is disposed at the first GetContentDimensions() or SetSize() call.
AknIconUtils::PreserveIconData( bitmap );//得到图象数据
AknIconUtils::GetContentDimensions( bitmap, size );//得到上下文的尺寸 这里就改变了size 晕 不知道如何作到的
}
else
{
size = *aSize;//NULL
}
AknIconUtils::SetSize( bitmap, size, aScaleMode );//添加图象
AknIconUtils::SetSize( mask, size, aScaleMode );//添加mask EAspectRatioPreserved
if ( aSize == NULL )
{
AknIconUtils::DestroyIconData( bitmap );
}
return CGulIcon::NewL( bitmap, mask );//
}
// ]]] end generated function
/*
========================================================================
Name : ATestList2ListBox.cpp
Author : SMSExampleParser
Copyright : Your copyright notice
Description :
========================================================================
*/
// [[[ begin generated region: do not modify [Generated System Includes]
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
// ]]] end generated region [Generated System Includes]
更多精彩
赞助商链接