Hi
I try to print with usb printer from processing.
I think this project’s process is simple. if i tap enter key, image file is printed. printing is fine.
but I have problem, printer print image like this photo.
A6 paper is a lot smaller than standard 8.5" x 11" typing paper and it may be scaling your image down in size to fit the paper. I tried to run your code and just now realized that you are using a special label printer, which I don’t have, and therefore will be unable to reproduce your problem. So it doesn’t look like I’m going to be much help. Perhaps someone else has this printer and could test your code and image.
Addendum:
Your receipt image measures 301 x 605 which is fairly small for an image. When printed on 8.5" x 11" paper it measures approximately 2" x 4" (width by length) which is about what I would expect for a receipt. Have you tried printing it out on another printer? Is there a setup dialog for your PeriPage label printer?
Because It has that the driver of this printer on only window version …
and I’m just a design student who learn about interactive art… i’m not developer. So I’m used to proseccing rather than java. also I have never use java before…
I already tried to use another jpg file and png file, it doesn’t work
My printer have setup dialog, but it has only one option width 2" paper. That’s why I set the size of image small.
Than if I try to adjust the size of image to fit in 8.5" 11" paper, could it be work well?..