Commit Graph

4306 Commits

Author SHA1 Message Date
Robin Dunn
1b03456463 Mention parameter name changes in the radial gradient methods in the MigrationGuide 2019-09-05 18:53:03 -07:00
Robin Dunn
676e588c76 Ensure the context is not None before assigning to it 2019-09-05 10:38:42 -07:00
Robin Dunn
d09910f413 Add changelog item for wx.svg 2019-09-04 18:04:15 -07:00
Robin Dunn
83e2212bf6 Add SVGImage_Render sample 2019-09-04 17:21:37 -07:00
Robin Dunn
5a3f0dd98e Update wxWidgets ref 2019-09-04 15:02:30 -07:00
Robin Dunn
fe91b450cf add a test SVG showing use of a gradient pen 2019-09-04 14:31:01 -07:00
Robin Dunn
4580d2114f docstring tweak 2019-09-04 14:31:01 -07:00
Robin Dunn
5e6a7b49b1 Add SVGImage sample to the demo, and some example SVG files. 2019-09-04 14:31:01 -07:00
Robin Dunn
a2a2b25d33 a bit more cleanup 2019-09-04 14:31:01 -07:00
Robin Dunn
c4f30a1eba Docstring tweaks 2019-09-04 14:31:01 -07:00
Robin Dunn
2cc38c2fe3 fix typo 2019-09-04 14:31:01 -07:00
Robin Dunn
552c6874c9 Docstring updates 2019-09-04 14:31:01 -07:00
Robin Dunn
fa4683d8f7 * Fix scanning extension modules for docstrings
* Support documenting classes that are in a package's __init__ module
2019-09-04 14:31:01 -07:00
Robin Dunn
defa946fce remove experimental automodule 2019-09-04 14:31:01 -07:00
Robin Dunn
d6bda86a0e Some docstring updates, and add wx.svg to the docs to be built 2019-09-04 14:30:51 -07:00
Robin Dunn
43c2b5c96c Add RasterizeToBuffer 2019-09-04 14:30:51 -07:00
Robin Dunn
68d8224a86 Add/update some docstrings 2019-09-04 14:30:51 -07:00
Robin Dunn
7d7c66920d A little cleanup 2019-09-04 14:30:35 -07:00
Robin Dunn
6b5adab03f Handle holding the dc reference differently in GraphicsRenderer.CreateContext methods 2019-09-04 14:30:35 -07:00
Robin Dunn
8efd6385a1 Add --no-allmo option 2019-09-04 14:30:35 -07:00
Robin Dunn
1fc8ba5aaf Remove linearPoints and radialPointRadius. They are not needed anymore,
and easy enough to do from Python if they are ever needed again.
2019-09-04 14:30:35 -07:00
Robin Dunn
8d6729ae52 GDI+ backend now mostly works okay with the gradient matrix 2019-09-04 14:30:35 -07:00
Robin Dunn
65f5485f16 Use a list for renderers without gradient transform support (so far) 2019-09-04 14:30:22 -07:00
Robin Dunn
57b0ff0408 Transforms on the GDI+ gradients don't work (yet?) so translate the points ourselves. It won't look right for anything but simple transforms, but it will at least look a little like what was intended. Maybe. 2019-09-04 14:30:00 -07:00
Robin Dunn
aa6c0a6661 Add simple a method to get the name of the ++ GraphicsRenderer class 2019-09-04 14:30:00 -07:00
Robin Dunn
cb8263bcb4 fix typo in comment 2019-09-04 14:30:00 -07:00
Robin Dunn
0e95ec1348 update cairo-msw to version 1.15.12 2019-09-04 14:30:00 -07:00
Robin Dunn
424b919b2e Use the gradient transforms and normalized coordinants 2019-09-04 14:29:31 -07:00
Robin Dunn
0ddc262ee5 Some tweaks for PenInfo and GraphicsPenInfo wrappers 2019-09-04 14:29:31 -07:00
Robin Dunn
9e78437974 begin support for gradient pens 2019-09-04 14:28:51 -07:00
Robin Dunn
98410a0742 We need to set the start and stop colors on the gradients. That's what
causes it to fill the areas before the start and after the end of the gradient.
2019-09-04 14:28:09 -07:00
Robin Dunn
8d37c9119f Add RasteriseToBitmap 2019-09-04 14:28:09 -07:00
Robin Dunn
cd6715a254 Move RenderToGC to SVGimage 2019-09-04 14:28:09 -07:00
Robin Dunn
1120ca212b A few docstring tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
7633078b23 f-strings not available in 2.7 2019-09-04 14:28:09 -07:00
Robin Dunn
c93463527b Switch to my own branch in nanosvg 2019-09-04 14:28:09 -07:00
Robin Dunn
b9e804bdd4 More radial gradient experimenting 2019-09-04 14:28:09 -07:00
Robin Dunn
94b98f968e Rename SVGimage to SVGimageBase, so SVGimage can be pure python and in the __init__.py file 2019-09-04 14:28:09 -07:00
Robin Dunn
ce4a4d96d8 more tweaking around with radial gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
68357daec7 more radial gradient tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
b4e40843d5 working on radial gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
13796f88c1 Add method to transform and fetch the start and stop points for linear gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
efd8d48b42 Add color_rgba helper for gradient stops 2019-09-04 14:28:09 -07:00
Robin Dunn
f0a0f8a65c Add rasterization methods 2019-09-04 14:28:09 -07:00
Robin Dunn
ce2046549d Add color_rgba, points, some __repr__s and other tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
a5bd9f39a8 restore original char* parameter 2019-09-04 14:28:09 -07:00
Robin Dunn
fc590e69f5 fiddle with buffer options 2019-09-04 14:28:09 -07:00
Robin Dunn
e7ebf2024e rearrange things and a few minor tweaks 2019-09-04 14:28:08 -07:00
Robin Dunn
be6e6a4ea7 cleanup and tweaks in setup-wxsvg.py 2019-09-04 14:28:08 -07:00
Robin Dunn
76937dca90 Exclude source files in wx/svg from being added to bdists 2019-09-04 14:28:08 -07:00