2465 { |
2465 { |
2466 TUint32* buffer = NULL; |
2466 TUint32* buffer = NULL; |
2467 buffer = new (ELeave) TUint32[ iColorBufferSize.iWidth * iColorBufferSize.iHeight ] ; |
2467 buffer = new (ELeave) TUint32[ iColorBufferSize.iWidth * iColorBufferSize.iHeight ] ; |
2468 |
2468 |
2469 iVgSurface->PrepareToBindClientBuffer(); |
2469 iVgSurface->PrepareToBindClientBuffer(); |
2470 VGImage vgImage = CreateVGImage( buffer, iColorBufferSize, EColor16MU, ETrue ); |
2470 //VGImage vgImage = CreateVGImage( buffer, iColorBufferSize, EColor16MU, ETrue ); |
|
2471 VGImage vgImage = iVgRenderer->vgCreateImage( VG_sRGBA_8888_PRE,iColorBufferSize.iWidth, iColorBufferSize.iHeight, VG_IMAGE_QUALITY_FASTER ); |
2471 //Clear VGImage |
2472 //Clear VGImage |
2472 VGfloat color[4] = { 1.0f, 1.0f, 1.0f, 0.0f }; |
2473 VGfloat color[4] = { 1.0f, 1.0f, 1.0f, 0.0f }; |
2473 iVgRenderer->vgSetfv(VG_CLEAR_COLOR, 4, color); |
2474 iVgRenderer->vgSetfv(VG_CLEAR_COLOR, 4, color); |
2474 iVgRenderer->vgClearImage(vgImage,0,0,iColorBufferSize.iWidth,iColorBufferSize.iHeight); |
2475 iVgRenderer->vgClearImage(vgImage,0,0,iColorBufferSize.iWidth,iColorBufferSize.iHeight); |
2475 //Clear VGImage |
2476 //Clear VGImage |