hello,everyone. pngwriter is a good tool to plot image. now I need use
the polygon mothod, and I found
---------------------
void polygon( int * points, int number_of_points,

double red, double green, double blue);

void polygon( int * points, int number_of_points,

int red, int green, int blue);
---------------------
but I can not find any example. I try like this
-----------------
....
int *pn=new int[pnum*2];
for(int i=0;i<pnum;i++)
{
int p;
ifile>>p;
pn[i*2]=(int)px[p]*100;
pn[i*2+1]=(int)py[p]*100;
}
image.polygon(pn,pnum,1.0,0.0,0,0);
......
---------------------
but failed:(

who can give me a example of the polygon?? thanks a lot!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users

Reply via email to