how to load and display png image

Hi,

I am a new user of egl. I would like to load and display a png format image on display using egl.

How can I do it?
I was able to load it using libpng API but not able to display.

I always get an error of “discoonect from client.Segmentation fault.”

I am using wayland architecture on ICAR os.