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

Create alpha layer with boundaries matching content #6

Open
pflammertsma opened this issue Aug 12, 2015 · 0 comments
Open

Create alpha layer with boundaries matching content #6

pflammertsma opened this issue Aug 12, 2015 · 0 comments

Comments

@pflammertsma
Copy link
Collaborator

Related to #4.

Currently, when an alpha layer is created for a group with opacity value < 1, the boundaries are calculated to match the dimension of the entire canvas. This is especially problematic when scaling is applied to the matrix, as the off-screen bitmap can become quite sizable, with poor performance and ultimately may lead to OOMEs.

The most obvious way to combat this is by computing the boundaries of the paths inside the group, and creating the layer to match the left, top, right and bottom coordinates of the boundary.

pflammertsma pushed a commit that referenced this issue Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant