Hi <div><br></div><div>I am facing a strange problem.</div><div><br></div><div>I am saving a surface i created with format 4, i.e. RGB16, (stride=2) to a file using <i>cairo_surface_write_to_png()</i></div><div><i><br></i></div>
<div>later, when i load the same file usin<font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)">g <i>cairo_surface_create_from_png(), </i>i get a format of 1, i.e. RGB24 and a stride of 4. </span></font></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)">Any ideas why this is happening? Is this expected response?</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)">Thanks,</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)">Ravi</span></font></div><div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="white-space:pre;background-color:rgb(255,255,255)">p.s: sorry for mixed fonts!</span></font></div>