INNER CODE UNIT · C
point
lxi-tools/lxi-tools · src/gtkchart.c:863
point = l->data;
fprintf(file, "%f,%f\n", point->x, point->y);
}
// Close file
fclose(file);
return true;
}
bool gtk_chart_save_png(GtkChart *chart, const char *filename)
{
int width = gtk_widget_get_width (GTK_WIDGET(chart));
int height = gtk_widget_get_height (GTK_WIDGET(chart));
// Get to the PNG image file from paintable
GdkPaintable *paintable = gtk_widget_paintable_new (GTK_WIDGET(chart));
GtkSnapshot *snapshot = gtk_snapshot_new ();