Hi all,

i need to draw a polygon (non-convex) into memory, so that i can query which 
pixels are inside the polygon and which not. I came across matplotlib which has 
some Polygon class in it so i presume i could use this (although so far, i 
didn't understand the terminology behind the library and how to string things 
together... patches? artists? O_O) 

What is the easiest way to draw the filled polygon, defined by a sequence of 
points, into some 1bit raster, so that i can answer queries like "Is the pixel 
at [10, 12] inside the polygon?"

Cheers!

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to