<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="mysingle_style" type="text/css">
<!--
p
{margin-bottom:5px;
font-size:9pt;
font-family:Arial,arial;
margin-top:5px}
td
{margin-bottom:5px;
font-size:9pt;
font-family:Arial,arial;
margin-top:5px}
li
{margin-bottom:5px;
font-size:9pt;
font-family:Arial,arial;
margin-top:5px}
body
{font-size:9pt;
font-family:Arial,arial;
margin:10px;
line-height:1.4}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Gaurav,<br>
<br>
If you use all the cairo_move_to() calls then you end up with a rectangle made up of four discontinuous line segments.<br>
<br>
http://www.bryceharrington.org/files/g.pruthi.before.png<br>
<br>
Instead just use the first cairo_move_to() and then only cairo_line_to() after that. See:<br>
<br>
<a href="http://www.bryceharrington.org/files/g.pruthi.c" target="_blank">http://www.bryceharrington.org/files/g.pruthi.c</a><br>
<a href="http://www.bryceharrington.org/files/g.pruthi.after.png" target="_blank">http://www.bryceharrington.org/files/g.pruthi.after.png</a><br>
<br>
Btw, the final cairo_line_to() call (when i==3) is unnecessary in this case; the cairo_close_path() call will complete the last line of the rect.<br>
<br>
http://www.bryceharrington.org/files/g.pruthi.c<br>
<div><br>
I couldn't find the tutorial that this sample code comes from. If you could please point me at it; if it's a cairographics.org tutorial it may need to be improved.<br>
<br>
<div style="font-family:Tahoma; font-size:13px">--<br>
Bryce Harrington<br>
Senior Open Source Developer - b.harrington@samsung.com<br>
Open Source Group - Samsung Research America<br>
<br>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF880339"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Gaurav Pruthi [g.pruthi@samsung.com]<br>
<b>Sent:</b> Thursday, July 04, 2013 1:07 AM<br>
<b>To:</b> Bryce W. Harrington<br>
<b>Subject:</b> Query regarding Cairo.<br>
</font><br>
</div>
<div></div>
<div>
<p>Hi Bryce,</p>
<p>I found you on cairo mailing list. Just have one query if you have time to look into.
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
I have just started using cairo library... I have seen examples to fill a </span>
</p>
<p><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">polygon which are repetitive
calls to move_to() and line_to() routines</span><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">.
</span><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">When I tried following
snippet of code which is mentioned in most of the tutorials, but</span></p>
<p><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">it didn't worked.</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">void drawRectangle(cairo_t*
cr)</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">{</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_path_t path;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_path_data_t pathData[4];</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[0].point.x
= 10 ;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[0].point.y
= 20;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[1].point.x
= 210;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[1].point.y
= 20;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[2].point.x
= 210;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[2].point.y
= 320;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[3].point.x
= 10;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[3].point.y
= 320;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> //Set path data in
path</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_move_to(cr, pathData[0].point.x,
pathData[0].point.y);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> for(int i =0 ; i<=
3; ++i)</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> {</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_move_to(cr,
pathData[i].point.x, pathData[i].point.y);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> if(i == 3){</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_line_to(cr,
pathData[0].point.x, pathData[0].point.y);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> }</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> else</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_line_to(cr,
pathData[i+1].point.x, pathData[i+1].point.y);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> }</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_close_path(cr);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_set_source_rgb(cr,1.0,0.</span><wbr style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">0,0.0);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_fill_preserve(cr);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_set_source_rgba(cr,0.0,</span><wbr style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">1.0,0.0,0.5);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_set_line_width(cr,10.0);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_stroke(cr);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">}</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">But this one worked where
I am moving to the first point and just making line_to() calls is working .. below one:</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">void drawRectangle(cairo_t*
cr)</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">{</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_path_t path;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_path_data_t pathData[4];</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[0].point.x
= 10 ;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[0].point.y
= 20;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[1].point.x
= 210;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[1].point.y
= 20;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[2].point.x
= 210;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[2].point.y
= 320;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[3].point.x
= 10;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> pathData[3].point.y
= 320;</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> </span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_move_to(cr, pathData[0].point.x,
pathData[0].point.y);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> for(int i =0 ; i< =3
; ++i)</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> {</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_line_to(cr,
pathData[i].point.x, pathData[i].point.y);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> }</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_close_path(cr);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_set_source_rgb(cr,1.0,0.</span><wbr style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">0,0.0);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_fill_preserve(cr);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_set_source_rgba(cr,0.0,</span><wbr style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"><span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">1.0,0.0,0.5);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_set_line_width(cr,10.0);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> cairo_stroke(cr);</span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px"> <span class="Apple-converted-space"> </span></span><br style="white-space:normal; text-transform:none; word-spacing:0px; color:rgb(34,34,34); font:12px arial,sans-serif; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">
<span style="white-space:normal; text-transform:none; word-spacing:0px; float:none; color:rgb(34,34,34); font:12px arial,sans-serif; display:inline!important; letter-spacing:normal; background-color:rgb(255,255,255); text-indent:0px">}</span></p>
<p> </p>
<p>First sample is based on the examples available on internet. Can you pls tell whats the problem with the first one.</p>
<p> </p>
<p>Thanks a lot for your time.</p>
<p><span style="font-size:8pt; color:#0000ff; background-color:#ffffff">Gaurav Pruthi</span></p>
<p><span style="font-size:8pt; color:#0000ff; background-color:#ffffff">Display Platform</span></p>
<p><span style="font-size:8pt; color:#0000ff; background-color:#ffffff">Samsung R&D India - Delhi Lab</span></p>
<p> </p>
<table id="confidentialsignimg">
<tbody>
<tr>
<td>
<p><img src="UrlBlockedError.aspx"></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>