Hi All,<br><br>I am using Ubuntu 10.04 LTS - the Lucid Lynx.<br><br>I want to use Cairo with OpenVG background.The EGL version 1.4.<br><br>After egl initialization I am using following apis for vg context creation and surface generation from cairo graphics library<br><br>&nbsp;&nbsp; cairo_ctx = cairo_vg_context_create_for_egl(eglDisplay,eglContext);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cairo_surf = cairo_vg_surface_create (cairo_ctx,CAIRO_CONTENT_COLOR,i32WindowWidth,i32WindowHeight);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (cairo_surface_status (cairo_surf))printf("cairo_vg_surface_create failedn");*<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; cr = cairo_create(cairo_surf);<br>&nbsp;&nbsp; cairo_set_source_rgb(cr,1,0,0);<br>&nbsp;&nbsp; cairo_rectangle(cr,50,50,256,256);<br>&nbsp;&nbsp; cairo_fill(cr);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; <br>&nbsp;&nbsp; But it draws nothing.Please suggest pointers where the things are wrong so that i can debug the code.&nbsp;&nbsp; <br>&nbsp;&nbsp; <br>&nbsp;&nbsp; The cairo trace code output is as below.<br>&nbsp;&nbsp; %!CairoScript - cairo-vg-test<br>&nbsp;&nbsp; %*** Warning CairoScript is still a new tracing format, and is subject to change.<br>&nbsp;&nbsp; dict<br>&nbsp;&nbsp;&nbsp;&nbsp; /type /vg set<br>&nbsp;&nbsp;&nbsp;&nbsp; /content //COLOR set<br>&nbsp;&nbsp;&nbsp;&nbsp; /width 640 set<br>&nbsp;&nbsp;&nbsp;&nbsp; /height 480 set<br>&nbsp;&nbsp;&nbsp;&nbsp; surface dup /s0 exch def<br>&nbsp;&nbsp; context % c0<br>&nbsp;&nbsp; 1 0 0 set-source-rgb<br>&nbsp;&nbsp; 50 50 256 256 rectangle<br>&nbsp;&nbsp; fill<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; Thanks in advance<br>&nbsp;&nbsp; Montis<br><br><ross.alexander@eu.nec.com><a href="http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Flists%2Ecairographics%2Eorg%2Fmailman%2Flistinfo%2Fcairo" target="_new"><br></a></ross.alexander@eu.nec.com><br><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A>