When copying a bitmap to the clipboard using the below code it shows up as a 32bpp DIB..
Bitmap b = new
for (int i=0;i<50;i++)
The above code does work for many applications (mspaint, word, wordpad), but I have an application which is failing to retrieve a 32bpp BITFIELDS bitmap from the clipboard. The only difference I can tell between what my C# application puts on the clipboard and what mspaint puts on the clipboard is the format of the DIB stored in the clipboard. When mspaint puts an image on the clipboard it comes up as a 24bpp RGB image. When I put a Bitmap on the clipboard via C# it shows up as a 32bpp BITFIELDS image. I am thinking that the third party application I am attemping to paste into doesn't like this format. If I have no DIB on the clipboard the application correctly reports "No image on clipboard".
I've been using http://www.codeguru.com/cpp/w-p/clipboard/externallinks/article.php/c9155/
to look at the contents of the clipboard.