[cairo] Cairo and OPenCV

Bill Spitzak spitzak at gmail.com
Fri Sep 9 10:33:17 PDT 2011

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.

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.

Deepak Kumar JAIN wrote:
> Hello All,
> 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.
> It will be of immense help to me if someone can through some light on 
> where I can go wrong.
> Thanks & regards,
> Deepak Kumar JAIN
> --
> www.deepakkumarjain.co.cc <http://www.deepakkumarjain.co.cc>
> "/I err therefore I am /"- Saint Augustine
> ------------------------------------------------------------------------
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list