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

Selection transformation fixes #1642

Merged
merged 2 commits into from
Jul 13, 2021
Merged

Conversation

scribblemaniac
Copy link
Member

This PR contains small fixes for two issues:

  1. Transparent areas turning black when transformed (Frames imported with Movie Video Import produce alpha channel artifacts #1641)
  2. The view does not update after cancelling a selection with the escape shortcut.

// so that the area beyond the image bounds is transparent.
if (!mBounds.contains(rectangle) && !image()->hasAlphaChannel())
{
image()->convertTo(QImage::Format_ARGB32);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change to convertToFormat, thanks.

@scribblemaniac scribblemaniac added the 🔹 Minor PR (only one reviewer required) label Jul 1, 2021
@chchwy chchwy merged commit 457d4f5 into pencil2d:master Jul 13, 2021
@chchwy
Copy link
Member

chchwy commented Jul 13, 2021

Tested and work as expected. I am merging this, will push a QImage::convertTo() later on.

@Jose-Moreno Jose-Moreno modified the milestones: 0.7.0, v0.6.7 Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🔹 Minor PR (only one reviewer required) Transform
Projects
Development

Successfully merging this pull request may close these issues.

Frames imported with Movie Video Import produce alpha channel artifacts
3 participants