appleseedhq / appleseed

A modern open source rendering engine for animation and visual effects
https://appleseedhq.net/
MIT License
2.2k stars 329 forks source link

Include the alpha channel when copying the render widget to the clipboard #418

Open dictoon opened 10 years ago

ixartz commented 10 years ago

Ok I will try to tackle this issue.

May I have more information about this issue? Where is the render widget located?

dictoon commented 10 years ago

Yes, sure:

The render widget is the Qt widget that displays the render in appleseed.studio. The code of the render widget itself is here: https://github.com/appleseedhq/appleseed/blob/master/src/appleseed.studio/mainwindow/rendering/renderwidget.cpp. The code responsible for copying the render widget to the clipboard when doing CTRL+C is here: https://github.com/appleseedhq/appleseed/blob/master/src/appleseed.studio/mainwindow/rendering/renderclipboardhandler.cpp.

Right now, when you select the render widget (SHIFT+left click in the widget) and do CTRL+C, the image displayed in the render widget is copied to the clipboard. Unfortunately it doesn't contain any alpha channel information since the render widget itself doesn't contain any.

The goal of this task is to change things so that, at the end, CTRL-C copies a picture with an alpha channel to the clipboard.