Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

My JTextPane contains an image which looks good on the screen but “blocky” when printed, why?

0
Posted

My JTextPane contains an image which looks good on the screen but “blocky” when printed, why?

0

This problem occurs because your image is right for screen resolution, say, 72 dpi, but then printed at printer resolution, say, 288 dpi. Java uses the same 72 dpi coordinate system when printing, but it knows that the printer is at 4X higher resolution. So if you have a 72×72 image that displays as 1″x1″ on the screen, Java does a 4X pixel replication of the 72×72 pixels to get 288×288 pixels so as to print the same 1″x1″ on the page, which results in the blocky effect.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123