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

Is there anything to crop the image vertically? #38

Closed
kamal-hossain opened this issue Nov 17, 2021 · 1 comment
Closed

Is there anything to crop the image vertically? #38

kamal-hossain opened this issue Nov 17, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@kamal-hossain
Copy link
Contributor

Hey there, like here we can define a width for the image. Is there anything so that we can crop the image below? Like maximum height?

It can be useful sometime if we wanna crop the image from below to save some paper.

@tr3v3r
Copy link
Owner

tr3v3r commented Nov 22, 2021

@kamal-hossain Hi! I think if you set height manually the image will be resized but not cropped. But if you have a capacity you could play with resize functions on the native size
Android:

private void handlePrintImage(Bitmap bitmap, int width, int color, int mode, int halftone, double brightness) throws Epos2Exception {

iOS:
- (int)printImage:(UIImage *)imageData

@tr3v3r tr3v3r added the enhancement New feature or request label Nov 22, 2021
@tr3v3r tr3v3r closed this as completed Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants