Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi ,

I tried a sample app for resizing bmp,png ,and jpeg images .Resizing of BMp is successfull.But resizing of png,jpg are failed.My code is follows.In this code image used is png.
Is there is any mistake .Plz help me.

static void Image_Resizing(Hope* pApp)
{
ISHELL_CreateInstance(pApp->a.m_pIShell,AEECLSID_GRAPHICS, (void **)&pApp->pIGraphics);
IImage* pImage;

pImage =ISHELL_LoadResData(pApp->a.m_pIShell,PEPLUS_RES_FILE,BABA,RESTYPE_IMAGE );

IGRAPHICS_SetViewport(pApp->pIGraphics,NULL,AEE_GRAPHICS_NONE);

IGRAPHICS_SetBackground(pApp->pIGraphics,255,255,255);
IGRAPHICS_ClearViewport(pApp->pIGraphics);
//IGRAPHICS_Translate(pApp->pIGraphics,0,0);
IGRAPHICS_StretchBlt(pApp->pIGraphics, 0, 0,50,50,(byte *)(pImage) + *((byte *)(pImage)), AEE_RO_COPY);
IGRAPHICS_Update(pApp->pIGraphics);

Thanks in advance,
Premlal