void raster_printstats(raster_t* p);
+/*
+ * Get the color value at a particular point.
+ */
+color_t raster_color(const raster_t* p, vec_t pt);
+
+
/*
* Set the viewport rectangle. This effectively sets up a clipping rectangle
* where nothing is drawn outside of the rectangle. The default viewport is
int raster_export_bmp(const raster_t* p, const char* filename);
+/*
+ * Load the raster from an image file. The file extension is used to
+ * determine which importer is actually called.
+ */
+raster_t* raster_import(const char* filename);
+
+/*
+ * Load the raster from a PPM file.
+ */
+raster_t* raster_import_ppm(const char* filename);
+
+/*
+ * Load the raster from a BMP file.
+ */
+raster_t* raster_import_bmp(const char* filename);
+
+
/*
* Fill the entire raster with a solid color and reset the raster statistics.
*/