Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implements a basic Kiva
pil_image
backend using the PIL/PillowImageDraw
routines (and related code). This is intended to be a reasonably complete reference implementation of Kiva that can be used if there are problems building the Agg backends.There are some gaps due to limitations of the
ImageDraw
library:arc_to
,stroke_rect
/fill_rect
, etc.; some of these are straightforward to implement, but it should be done in basecore2d)But it does implement:
And it includes some fixes/improvements to basecore2d that became apparent when writing the code.
There are likely corner cases, particularly in text rendering or when the expected behaviour is unclear. These can be fixed as needed if they aren't found in the review of the PR. It is about 50 times slower than the Agg renderers.