[MATRIX-SIG] reverse of take?

Fredrik Lundh Fredrik Lundh" <fredrik_lundh@ivab.se
Thu, 26 Jun 1997 23:01:29 +0200


>Ie, I want to draw a circle on a large array of 0 bytes
>(without making another large array).  solution: compute
>the array of indices for the circle and set all the indices
>to one.

from ImageDraw import ImageDraw

d = ImageDraw(im)
d.setfill(1)

d.ellipse((x0,y0,x1,y1))

Oops, wrong SIG, sorry for the intrusion ;-)

Cheers /F





_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________