Screencapture + Copy + Transparency issue
Please forgive if this is a duplicate, as I didn't spend the time searching, nor was this tested in 2.1 but rather within 2.0.3.
If the user performs the following activities:
1) Toggle Image Capture mode
2) Select whatever section desired
3) Right-Click to make sure "transparency" is set
4) Right-Click and copy this selection
5) Paste image back onto the score
The result is lacking transparency, yet this transparency works fine if the capture was saved to file rather than saved to clip-board via the copy function. This should be fixed.
Comments
Same problem in 2.1
Interestingly in this case the image stored inside the mscz file has no extension, no ".png", regardless being an PNG file. And indeed that file isn't transparent
Instead of copy/paste you could use Ctrl+Shift+drag, this inserts the images as an SVG
Thanks for the work-around tip Jojo.
Looking at the code this seems to be by design, see mscore/fotomode.cpp, fotoModeCopy()
Code in master is very similar, so most probably affected by this too.
OTOH if I ignore the comment and change the code to use
preferences.pngTransparent
rather thanfalse
, it seems to work just fine.That code is in since 810d798c, prior to the release of 2.0, but is just a refactoring, so the code was in even earlier, just in a different place.
See https://github.com/musescore/MuseScore/pull/3397 and let the powers to be check on this ;-)
Fixed in branch master, commit 9572faf374
Fix #209596: Screencapture + Copy + Transparency issue
Fixed in branch master, commit 8b9dc1954a
Merge pull request #3397 from Jojo-Schmitz/screencapture
Fix #209596: Screencapture + Copy + Transparency issue
Fixed in branch 2.2, commit bd068f7221
Fix #209596: Screencapture + Copy + Transparency issue
Automatically closed -- issue fixed for 2 weeks with no activity.