Export JPanel to vector graphics

前端 未结 7 1892
梦如初夏
梦如初夏 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条回答
  •  萌比男神i
    2020-12-17 05:31

    I can recommend the VectorGraphics2D library (LGPL). Although it does not support all the features of Graphics2D, I used it successfully for my project. It provides implementations of java.awt.Graphics2D for various vector file formats. It simply exports all paint operations to EPS, SVG, or PDF files.

提交回复
热议问题