Skip to content

PAG #945

Answered by domchen
henlopping asked this question in Q&A
PAG #945
May 22, 2023 · 1 comment
Discussion options

You must be logged in to vote

一般是PAGComposition的尺寸设置问题。你可以把PAGComposition的尺寸创建为跟Bitmap一样的尺寸,再添加到PAGView里应该就行了。如果你的PAGComposition尺寸没法修改,那就手动设置图片图层的setMatrix来改变位置。需要自己计算一下居中需要的矩阵。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by domchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants