如何在Electron中将透明图像写入剪贴板

问题描述 投票:0回答:1

我试图用clipboard.writeImage()写一个透明的nativeImage到剪贴板。但在粘贴图像后,其透明部分变为黑色。那么我怎样才能正确地写出图像呢?

环境:Windows 10,Node v8.11.3,Electron 2.0.2

electron
1个回答
0
投票

这不是电子虫。默认情况下,Windows剪贴板不支持透明度。

Copying From and To Clipboard loses image transparency

© www.soinside.com 2019 - 2024. All rights reserved.