Getting High Resolution Image from JPanel

前端 未结 2 681
别跟我提以往
别跟我提以往 2020-12-18 16:01

Suppose I have a JPanel Called panel, and already with a paintComponent, I drew some shapes like rectangles. I can get a buffered imag

2条回答
  •  旧时难觅i
    2020-12-18 16:38

    1. Use print instead of paint
    2. Scale up your component and your image dimension, then scale your image back to target size
    3. Use transform will make your image blurring, try to scale your image 8 times and you'll see the differences

提交回复
热议问题