Skip to content

Selection transformation fixes#1642

Merged
chchwy merged 2 commits into
pencil2d:masterfrom
scribblemaniac:rgb-fix
Jul 13, 2021
Merged

Selection transformation fixes#1642
chchwy merged 2 commits into
pencil2d:masterfrom
scribblemaniac:rgb-fix

Conversation

@scribblemaniac

Copy link
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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

chchwy commented Jul 13, 2021

Copy link
Copy Markdown
Member

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

🔹 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