E
E
Evgeny Ivanov2019-11-14 19:55:10
Graphic arts
Evgeny Ivanov, 2019-11-14 19:55:10

How to fix a bug in DragonBones?

I use the latest versions of Adobe Illustrator and DragonBones.
In illustrator, I draw the object in layers. And then I export the resources to png. (Collection for export).
5dcd83aee86cf220917427.png
I get a folder 1x with png files.
I load all these files into DragonBones.
5dcd83c6e555d274761987.png
Everything loaded fine. Without distortion.
I am creating a grid.
5dcd83e49b7d5811077218.png
And here is the result with the grid. See how the grid cut off 1 pixel from the edges of the picture.
5dcd8723c7ad0730696170.png
Regardless of how to create a grid - manually, automatically, will always be cut off by 1 pixel from the edge. This is not my inaccuracy, but the work of the program.
The fact is that Adobe Illustrator creates png files exactly along the borders of the picture. What is correct and optimal.
But DragonBones cuts off 1 px with a grid, that is, it is guaranteed to cut off a pixel of the picture along the edges.
Now I have to reopen the png and resize it by adding transparent pixels around the edges.
Which is very annoying.
How to fix a bug in DragonBones? And is it a mistake?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question