SVGGraphics2D support for TexturePaint (Generate Fill Patterns and Raster Bitmap images) #49
istinnstudio
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Thanks for the feature request and especially the extra links. You are right that JFreeSVG is not supporting |
Beta Was this translation helpful? Give feedback.
3 replies
-
thanks for taking this into account |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This a feature request/idea, I am using successfully jfreesvg to generate SVGs from Java2D drawing API. Thanks for your efforts in this library. As far as I can see, TexturePaint objects with raster image references cannot be translated. I was wondering if it is relatively easy to implement some of the TexturePaint object elements like filling shapes with raster images.
Example of SVGs with raster fills here:
https://stackoverflow.com/questions/3796025/fill-svg-path-element-with-a-background-image
https://stackoverflow.com/questions/53878582/fill-a-svg-path-with-a-full-background-image
A TexturePaint object through SVGGraphics2D should generate SVGs with the image xlink:href elements involved, as appearing in java2D code, generating the reference link to the local raster file(s), or url(s) if any. Then someone could copy the raster files involved and paste them near the generated SVG in order use them as a "group of files referenced from the SVG", edit etc.
I am not sure though (not tested), if other vector fill patterns painted through java2D TexturePaint are supported from SVGGraphics2D.
http://tutorials.jenkov.com/svg/fill-patterns.html
Seems that there is no error message when using TexturePaint with SVGGraphics2D, but the image references are not being generated.
EXAMPLE SVG with A LOCAL FILE REFERENCE, could be any image
Beta Was this translation helpful? Give feedback.
All reactions