Export JPanel to vector graphics

前端 未结 7 1894
梦如初夏
梦如初夏 2020-12-17 04:46

I would like to export the image in my JPanel to a vector graphics file so it can be edited and printed at a higher-than-screen resolution. Essentially I want its pai

相关标签:
7条回答
  • 2020-12-17 05:37

    Apache Batik will let you paint to a specialised implementation of a Graphics2D object and then export as an scalable vector graphics (.svg) file. You can then view/process/print it using an SVG-enabled browser (Firefox will handle it nativly, ISTR, IE and others can use plugins).

    See the SVGGraphics2D object (process documented here)

    0 讨论(0)
提交回复
热议问题