]> git.imager.perl.org - imager.git/blobdiff - apidocs.perl
improved polygon support
[imager.git] / apidocs.perl
index 1a6ed07778c5f4ec465f811efe1d307e6d2d5bd9..55804e04de06d903332aae85456c64c23abdaff9 100644 (file)
@@ -102,6 +102,12 @@ Imager::APIRef - Imager's C API - reference.
 
   i_color color;
   color.rgba.r = 255; color.rgba.g = 0; color.rgba.b = 255;
+  double x[] = { ... };
+  double y[] = { ... };
+  i_polygon_t poly;
+  poly.count = sizeof(x) / sizeof(*x);
+  poly.x = x;
+  poly.y = y;
 
 EOS