mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Workaround for clipboard copy transparency issues
This commit is contained in:
parent
f0e91c6017
commit
a540905b4c
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ public static byte[] ConvertToDib(Image image)
|
||||||
int width = image.Width;
|
int width = image.Width;
|
||||||
int height = image.Height;
|
int height = image.Height;
|
||||||
// Ensure image is 32bppARGB by painting it on a new 32bppARGB image.
|
// Ensure image is 32bppARGB by painting it on a new 32bppARGB image.
|
||||||
using (Bitmap bm32b = new Bitmap(image.Width, image.Height, PixelFormat.Format32bppArgb))
|
using (Bitmap bm32b = new Bitmap(image.Width, image.Height, PixelFormat.Format32bppPArgb))
|
||||||
{
|
{
|
||||||
using (Graphics gr = Graphics.FromImage(bm32b))
|
using (Graphics gr = Graphics.FromImage(bm32b))
|
||||||
gr.DrawImage(image, new Rectangle(0, 0, bm32b.Width, bm32b.Height));
|
gr.DrawImage(image, new Rectangle(0, 0, bm32b.Width, bm32b.Height));
|
||||||
|
|
Loading…
Reference in a new issue