• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane to BufferedImage  RSS feed

Martin Arrech
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.
I'm maintaining a code of an application that prints stuff, like photos, text, in a pdf ready to get printed.
Now i have an annoying bug, the application converts text from a textpanel into a BufferedImage and save it to disk, but this image don't really represents what i see on screen.
Here's the code, I know it's a shame, but this code is not mine, I'm just maintaining it and fixing bugs

And then saves that image to disk

this is what i see on the app

this is what i get on image file (thumbnails don't work for png so, click on the image please)

in the second image, the text is cropped at right edge, very weird

Hope you can help me, before i get bald.
Sorry for my english
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!