how to render image

Hi,
i am new to EDGElib, i tried to load and render an image using sample code, provided in the topic: " need help to draw png image" in this forum.
____________________________________________
E2DSurface titlebg;
SetRect(&rc, 0, 0, buffer->GetWidth(), 50);
buffer->FillRect(&rc, E_RGBX(0, 255, 0));
display->CreateSurface(&titlebg, "splash.png");
buffer->BltFast(0, 0, &titlebg, NULL);
____________________________________________
The simulator is not rendering anything, but is black.
i placed the image in Classes folder, res folder and also in the projec folder, still not getting.
i tried to change the rectangle size, etc.
can anyone help me?
i am new to EDGElib, i tried to load and render an image using sample code, provided in the topic: " need help to draw png image" in this forum.
____________________________________________
E2DSurface titlebg;
SetRect(&rc, 0, 0, buffer->GetWidth(), 50);
buffer->FillRect(&rc, E_RGBX(0, 255, 0));
display->CreateSurface(&titlebg, "splash.png");
buffer->BltFast(0, 0, &titlebg, NULL);
____________________________________________
The simulator is not rendering anything, but is black.
i placed the image in Classes folder, res folder and also in the projec folder, still not getting.
i tried to change the rectangle size, etc.
can anyone help me?