<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="+2">-Hi all,<br>
<br>
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:<br>
<br>
</font><font size="+2"><big><big><big><big><big><big><big><big><big><span
style="color: rgb(68, 68, 68); font-family:
'Open Sans', Helvetica, Arial, sans-serif;
font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16px;
orphans: auto; text-align: start; text-indent:
0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display:
inline !important; float: none;
background-color: rgb(255, 255, 255);"><span
class="Apple-converted-space">" </span>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."<br>
</span></big></big></big></big></big></big></big></big></big><br>
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".<br>
<br>
My question is, what format should the image be converted to in
order for it to be shown properly in shared memory?<br>
<br>
Any advice would be welcome.<br>
<br>
Many thanks. <br>
</font><big><big><big><big><big><big><big><big><big><span
style="color: rgb(68, 68, 68); font-family:
'Open Sans', Helvetica, Arial, sans-serif;
font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16px;
orphans: auto; text-align: start; text-indent:
0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color:
rgb(255, 255, 255);"></span></big></big></big></big></big></big></big></big></big>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</body>
</html>