WEB开发网
开发学院手机开发Symbian 开发 Symbian 开发中卡拉OK字幕实现方法 阅读

Symbian 开发中卡拉OK字幕实现方法

 2010-02-23 04:09:00 来源:WEB开发网   
核心提示:iBackBufferDevice = NULL;}if (iBackBuffer){delete iBackBuffer;iBackBuffer = NULL;}if (iBackBufferContext_2){delete iBackBufferContext_2;iBackBufferContext_2 = N

iBackBufferDevice = NULL;

}

if (iBackBuffer)

{

delete iBackBuffer;

iBackBuffer = NULL;

}

if (iBackBufferContext_2)

{

delete iBackBufferContext_2;

iBackBufferContext_2 = NULL;

}

if (iBackBufferDevice_2)

{

delete iBackBufferDevice_2;

iBackBufferDevice_2 = NULL;

}

if (iBackBuffer_2)

{

delete iBackBuffer_2;

iBackBuffer_2 = NULL;

}

}

void CAuditionContainer::DrawToBackBuffer()

{

const CFont *Font = CEikonEnv::Static()->DenseFont();

iBackBufferContext->UseFont(Font);

// _LIT(KText,”hello world”);

TBuf8<20> msg8 ;

TBuf<20> KText ;

msg8.Format(_L8(” 谢谢您的使用”)) ;

ConvGbk2Uni(msg8, KText) ;

iBackBufferContext->SetPenColor(KRgbGreen);

iBackBufferContext->DrawText(KText,TPoint(0,Font->HeightInPixels()));

iBackBufferContext_2->UseFont(Font);

// _LIT(KText,”hello world”);

iBackBufferContext_2->SetPenColor(KRgbRed);

iBackBufferContext_2->DrawText(KText,TPoint(0,Font->HeightInPixels()));

}

void CAuditionContainer::Draw( const TRect& ) const

{

CWindowGc& gc = SystemGc();

gc.Clear();

gc.BitBlt(TPoint(0,100),iBackBuffer,TRect(TPoint(0,0),TSize(iBackBuffer->SizeInPixels().iWidth/5,iBackBuffer->SizeInPixels().iHeight)));

gc.BitBlt(TPoint(iBackBuffer_2->SizeInPixels().iWidth/5,100),iBackBuffer_2,TRect(TPoint(iBackBuffer_2->SizeInPixels().iWidth/5,0),TSize(iBackBuffer_2->SizeInPixels().iWidth*4/5,iBackBuffer_2->SizeInPixels().iHeight)));

}

使用步骤

第一步:初始化

Tags:Symbian 开发 卡拉OK

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