• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JTextPane to BufferedImage

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hugs
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic