WEB开发网
开发学院手机开发Symbian 开发 关于在symbian listbox中添加svg图片的问题 阅读

关于在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 GetContentDi

{

// 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 //swb 真有啊 天啊

#include

// ]]] end generated region [Generated System Includes]

上一页  19 20 21 22 23 24 25 26 27 28 29  下一页

Tags:关于 symbian listbox

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