Jump to content
  • Advertisement
Sign in to follow this  
So ThaeChol

PNG file on the LG phone

This topic is 3328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Manager. Firstly my English is very poor. but I will understand your any messages. Excuse me, I ask you onething. Now I've made brew program. It doesn't display png in my program. There is my code in below. void user_call(IMemAStream *pMS, IImage*pImage, AEEImageInfo* info, int nErr) { IMEMASTREAM_Release( pMS ); IDisplay *m_pIDisplay = ((AEEApplet*)(GET_APP_INSTANCE()))->m_pIDisplay; IIMAGE_Draw(pImage, (240 - info->cx)/2, (290-info->cy)/2); IDISPLAY_Update(m_pIDisplay); } void LoadImageFromMemory(IImage **pImage, byte *data, uint16 size, int strm) { IMemAStream *pMS; IShell *pSh = ((AEEApplet*)(GET_APP_INSTANCE()))->m_pIShell; ISHELL_CreateInstance( pSh, AEECLSID_PNG, (void**)pImage ); if( pImage == NULL || *pImage == NULL) return; ISHELL_CreateInstance( pSh, AEECLSID_MEMASTREAM, (void**)&pMS ); if( pMS == NULL ) { IIMAGE_Release( *pImage ); return; } IMEMASTREAM_Set( pMS, (byte*)data, size, 0, 0 ); IHeap *heap; ISHELL_CreateInstance(pSh, AEECLSID_HEAP, (void**)&heap); if(IHEAP_CheckAvail(heap, 40*1024)) { IIMAGE_Notify(*pImage, (PFNIMAGEINFO)user_call,(void*)pMS); IIMAGE_SetStream( *pImage, (IAStream*)pMS ); } IHEAP_Release(heap); return; } My phone is LG kv755. Help me.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!