Skip to content

setMatrix后,pag的预设效果丢失 #1725

Answered by domchen
l540144279 asked this question in Q&A
Discussion options

You must be logged in to vote

应该不是高斯模糊消失了,而是被你挡住了。你这个pag是一张图片同时在两个图层里引用,但是有不同的缩放值。你如果在同一个PAGImage上设置matrix,会同时影响两个引用它的图层,都变成一样大了就完全挡住了后面那个。你应该是获取对应的PAGImageLayer,修改单个PAGImageLayer的matrix来缩放。或者干脆做成两个图片分别替换。

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by l540144279
Comment options

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