enable icon indicating copy to clipboard operation
enable copied to clipboard

Clipping paths not implemented for Image backend

Open peowebster opened this issue 10 years ago • 1 comments

This code should clip to a star-shape, but doesn't:

from kiva.image import GraphicsContext
from numpy import pi

gc = GraphicsContext((300, 300))
gc.set_fill_color((0.0, 0.0, 1.0))

gc.begin_path()
gc.move_to(100, 100)
gc.line_to(150, 200)
gc.line_to(200, 100)
gc.line_to(100, 150)
gc.line_to(200, 150)
gc.line_to(100, 100)
gc.close_path()
gc.clip()

gc.begin_path()
gc.arc(150, 150, 100, 0.0, 2 * pi)
gc.fill_path()
gc.save("star_clip.bmp")

peowebster avatar Jul 12 '14 16:07 peowebster

This works with kiva.celiagg. #414 will close this.

jwiggins avatar Mar 23 '21 17:03 jwiggins