Hello Bill,<br>Thanks for the reply.<br><br>When I write the text in black in Cairo and see the resultant image in OpenCV, the text is becomes white. <br>Also the stride factor is always confusing me and also the BIt Depth in openCV and Cairo.<br>
<br>Can you please tell about that?<br><br>Thanks,<br>Deepak<br><br><div class="gmail_quote">On Fri, Sep 9, 2011 at 7:33 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com">spitzak@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Draw a rectangle to make sure the problem is not text-only. It might also show more clearly if the skew is caused by a wrong stride factor.<br>
<br>
Also useful is to draw solid red, green, blue rectangles, to check for the channels being in the wrong order. Or draw the text "red" in red, etc, to make sure the colors are not confused.<br>
<br>
Deepak Kumar JAIN wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hello All,<br>
<br>
Have anyone worked with Cairo with OpenCV. I am trying to load an jpg image through OpenCv and then creating the image surface through image data. After putting some text on the surface, I am again trying to copy the image surface into openCv image format so that i can save the resultant image into Jpeg format. But when I see the image, I see the text but its distorted and seems like some loss of data occurred. I am trying to see into it but I am not able to figure out where is the data loss occurring.<br>
<br>
It will be of immense help to me if someone can through some light on where I can go wrong.<br>
<br>
Thanks & regards,<br>
Deepak Kumar JAIN<br>
<br>
--<br>
</div></div><a href="http://www.deepakkumarjain.co.cc" target="_blank">www.deepakkumarjain.co.cc</a> <<a href="http://www.deepakkumarjain.co.cc" target="_blank">http://www.deepakkumarjain.<u></u>co.cc</a>><div class="im">
<br>
<br>
"/I err therefore I am /"- Saint Augustine<br>
<br>
<br></div>
------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.<u></u>org/mailman/listinfo/cairo</a><br>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>
<div><br>Thanks & Regards,<br>Deepak Kumar JAIN<br>Internship student, <br>Orange Labs,France Telecom,<br>Rennes, France<br>Contact: +33(0)6 31 15 44 66<br><a href="http://www.deepakkumarjain.co.cc" target="_blank">www.deepakkumarjain.co.cc</a><br>
</div>
<div><br><font face="Verdana, Arial, Helvetica, sans-serif" color="#000099">"<i style="color:rgb(0, 0, 0)">I err therefore I am </i>"- Saint Augustine</font><br> </div>
<div></div>
<div></div>
<div></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>