• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Printing with 300dpi

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam very new to printing in Java.
My problem is to print a JPEG with 300dpi to a Label-Printer with also 300dpi
When the Image is printet, its much more larger then the File, the Resolution is
only 72dpi.
How can i increas the Resolution to print with full 300dpi ?

Here my Code:



has anyone experience with printing more then 72dpi in java ?

greez
Slacki
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Try using




Cheers!!!

Ujjwal B Soni
<baroda>
<gujarat>
<india>
<919998971048>
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm also having the same problem. I'm using TSC-TTP-244 Plus barcode thermal printer and its resolution is 203 dpi.

I tried both the codes. In the first one a very small image is being printed spanning over 3 ribbon labels....

I also updated the code with the 2nd block and got the following exception:

Exception in thread "main" java.lang.RuntimeException: No printer services available.
at com.halo.struts.action.PrintImage.main(PrintImage.java:43)

Thanks & Regards,
Kunal Sapru
 
reply
    Bookmark Topic Watch Topic
  • New Topic