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

how does the initial width and height of sticker set? #23

Closed
flankechen opened this issue Sep 5, 2017 · 1 comment
Closed

how does the initial width and height of sticker set? #23

flankechen opened this issue Sep 5, 2017 · 1 comment
Labels

Comments

@flankechen
Copy link

Thanks for the great code. I am implementing some human face sticker use case and want to set the sticker width to the detected human face width.
Defalut pikachu sticker has a original size 256256, but apperas larger in the screen. I test this in Nexus 6p with a screen size 14402560. Pikachu apperas to occupy 1/3 of the screen width.
How this defalut width is set to 1/3 of the screen width? And how to set the entity's width according to screen pixel width?
Thanks!

@AndriyBas
Copy link
Contributor

@flankechen Entity scale is relative to its parent size. You can control the Entity size with the scale param (see Layer.java) class. Just set it to the one you need. scale == 1.0 means Entities biggest side will be the same as parent smallest side (meaning it will fit the parent).

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

No branches or pull requests

2 participants