
{"id":2430,"date":"2010-08-08T21:36:57","date_gmt":"2010-08-08T16:06:57","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2430"},"modified":"2010-08-08T21:36:57","modified_gmt":"2010-08-08T16:06:57","slug":"rectangle-with-cairo","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/08\/08\/rectangle-with-cairo\/","title":{"rendered":"rectangle with cairo"},"content":{"rendered":"<p><a href=\"http:\/\/www.trueangle.org\/wp-content\/uploads\/2010\/09\/be381-rectanglewithcairo-2.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.trueangle.org\/wp-content\/uploads\/2010\/09\/be381-rectanglewithcairo-2.png?w=300\" alt=\"\" title=\"rectanglewithcairo\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-2432\" \/><\/a><br \/>\n<code><br \/>\n\/* Jeffrin Jose  Licensed GPL v3 Copyright August 2010<br \/>\nGPL --&gt; http:\/\/www.gnu.org\/copyleft\/gpl.html *\/<\/p>\n<p>#include<\/p>\n<p>int<br \/>\nmain ()<br \/>\n{<br \/>\n        cairo_surface_t *surface =<br \/>\n            cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 800, 600);<br \/>\n        cairo_t *cr =<br \/>\n            cairo_create (surface);<\/p>\n<p>        cairo_set_font_size (cr, 32.0);<br \/>\n        cairo_set_source_rgb (cr, 0, 0, 0);<br \/>\n        cairo_set_line_width(cr,1.0);<br \/>\n        cairo_rectangle(cr,30,20,67,70);<br \/>\n        cairo_stroke(cr);<\/p>\n<p>        cairo_destroy (cr);<br \/>\n        cairo_surface_write_to_png (surface, \"hello.png\");<br \/>\n        cairo_surface_destroy (surface);<br \/>\n        return 0;<br \/>\n}<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* Jeffrin Jose Licensed GPL v3 Copyright August 2010 GPL &#8211;&gt; http:\/\/www.gnu.org\/copyleft\/gpl.html *\/ #include int main () { cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 800, 600); cairo_t *cr = cairo_create (surface); cairo_set_font_size (cr, 32.0); cairo_set_source_rgb (cr, 0, 0, 0); cairo_set_line_width(cr,1.0); cairo_rectangle(cr,30,20,67,70); cairo_stroke(cr); cairo_destroy (cr); cairo_surface_write_to_png (surface, &#8220;hello.png&#8221;); cairo_surface_destroy (surface); return 0; }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[517,859,1035,1353],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2430"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=2430"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2430\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=2430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}