next up previous contents index
Next: fkbox Up: Reference Previous: fillpoly   Contents   Index

fillpolys

$ \bigcirc$Name


fillpolys Fill a set of Polygons and generate a Cimage




$ \bigcirc$Command Synopsis


fillpolys [-x size_x] [-y size_y] Polygons Cimage



-x size_x : size in x (nb of columns) of the output cimage (default:256)

-y size_y : size in y (nb of rows) of the output cimage (default:256)

Polygons : set of Polygons (input)

Cimage : bitmapped Cimage of the filled polygons (output)




$ \bigcirc$Function Summary


void fillpolys (dx , dy , polys , bitmap )

int *dx , *dy ;

Polygons polys ;

Cimage bitmap ;




$ \bigcirc$Description


This module fills a set of polygons (e.g. created using the module readpoly) with the gray level 0 (black). The result is bitmapped in a Cimage. Pixels outside any polygon are set to the gray level 255 (white). The user has to specify the size of the Cimage, which must contains of course all the polygons. The defaut size is 256×256. Such function is useful to generate the first entry of the module movepoly. It has a pseudo-inverse transform called emptypoly.




$ \bigcirc$See Also


fillpoly.

lsnakes_demo.


$ \bigcirc$Version 1.02


Last Modification date : Thu Nov 29 20:23:56 2001


$ \bigcirc$Author


Jean-Pierre D'Ales, Jacques Froment






next up previous contents index
Next: fkbox Up: Reference Previous: fillpoly   Contents   Index
mw 2004-05-05