next up previous contents index
Next: fillpolys Up: Reference Previous: extract_connex   Contents   Index

fillpoly

$ \bigcirc$Name


fillpoly Fill a Polygon given by its vertices and generate a Cimage




$ \bigcirc$Command Synopsis


fillpoly [-x size_x] [-y size_y] Polygon 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)

Polygon : Input Polygon

Cimage : bitmapped Cimage of the filled polygon




$ \bigcirc$Function Summary


void fillpoly (dx , dy , poly , bitmap )

int *dx , *dy ;

Polygon poly ;

Cimage bitmap ;




$ \bigcirc$Description


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




$ \bigcirc$See Also


ezw, fillpolys, iezw.


$ \bigcirc$Version 1.1


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


$ \bigcirc$Author


Jean-Pierre D'Ales






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