-Hi all,

I just need a little help.  I created a little program loosely based on the "Hello Wayland" tutorial.  In tutorial they use a file called images.bin, and state:

" This image file contains the hardcoded images for the hello world application, already in a raw format for display: it’s the pixel values for the main window, followed by the pixel values for the cursor."

So I've tried using my test image file in bmp, png, raw and jpg formats, but with little success of showing the image properly.  The jpg doesn't show at all, while the other three showed a portion of the image around 3 times (side by side) within the given dimensions of 800x600, which is the size of the test image.  All crash the program with a message like "unable to access SHM".

My question is, what format should the image be converted to in order for it to be shown properly in shared memory?

Any advice would be welcome.

Many thanks.
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to