Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Image in center #28

Open
talhamughal10 opened this issue Jan 18, 2020 · 3 comments
Open

Align Image in center #28

talhamughal10 opened this issue Jan 18, 2020 · 3 comments

Comments

@talhamughal10
Copy link

Hi I am working on printing receipt.
But i am stuck in printing image in the center of the reciept. i am using 80mm paper and black copper printer. when i am aligning the text using the public static byte[] ESC_Align = new byte[] {0x1b, 0x61, 0x01 } command it center the text perfectly with no issue, but when i try to center the image and the barcode it doesn't center it.
Can you please guide me how to solve this issue?
It will be your kind pleasure.

@ghost
Copy link

ghost commented Jun 12, 2020

do you solve your problem?

@nachiketghelani
Copy link

Same issue with the image. not aligned center. if anyone has a solution let me know.
Thanks!

@ghost
Copy link

ghost commented Jul 7, 2020

Don't try to center image as text, Instead, try to use a wider image and set the image in the center.
If you want the implementation details please provide your Printer details and Code (Java or Kotlin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants