cairo graphics 0.1 (line)

#include #include int i=0; static gboolean draw(GtkWidget *widget, GdkEventExpose *event, gpointer data) { cairo_t *cr; cr = gdk_cairo_create(widget->window); cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width (cr, 0.5); /*for (i=0;i<200;i++) { */ cairo_move_to(cr,30,60); /* cairo_line_to(cr,30+i,60+i);*/ cairo_line_to(cr,40,200); cairo_stroke(cr); /* cairo_surface_flush(); */ /* usleep(100000);*/ /*} */ cairo_destroy(cr); return FALSE; } int main (int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, …

auxiliary and vector.

Words auxiliary = assistant,help,helper,supporter. vector = a one dimensional array. source: http://www.thefreedictionary.com Application Vector graphics is the use of geometrical primitives such as points, lines, curves, and shapes or polygon(s), which are all based on mat hematical equations, to represent images in computer graphics.Vector graphics formats are complementary to raster graphics, which is the representation …