Copying a transparent 32 bit bitmap to the clipboard

Copying a transparent 32 bit bitmap to the clipboard

am 26.10.2007 16:16:09 von info

Hi All,


I am struggling with this from 48 hours and cannot succeed, of course
I've tried:

DataObject dObj = new DataObject();
dObj.SetData(DataFormats.Bitmap, false, bitmap);
Clipboard.SetDataObject(dObj, true);

and

Clipboard.SetImage(bitmap);

But nothing: tranparency DOES NOT pass trough.

What is the secret?


Thanks,

Alberto

Re: Copying a transparent 32 bit bitmap to the clipboard

am 26.10.2007 16:22:07 von DFS

Alberto,

I have not tried it but it looks like this page discusses this issue.

http://www.vb-helper.com/howto_net_copy_transparent_image_sh ape.html

btw, I googled for "copy transparent bitmap to clipboard" to find this page.

Jason Newell
www.jasonnewell.net

info@devdept.com wrote:
> Hi All,
>
>
> I am struggling with this from 48 hours and cannot succeed, of course
> I've tried:
>
> DataObject dObj = new DataObject();
> dObj.SetData(DataFormats.Bitmap, false, bitmap);
> Clipboard.SetDataObject(dObj, true);
>
> and
>
> Clipboard.SetImage(bitmap);
>
> But nothing: tranparency DOES NOT pass trough.
>
> What is the secret?
>
>
> Thanks,
>
> Alberto
>