Click here to Skip to main content
16,020,628 members
Home / Discussions / C#
   

C#

 
GeneralSub Form Pin
rockNroll10-Apr-08 10:22
rockNroll10-Apr-08 10:22 
GeneralRe: Sub Form Pin
Luc Pattyn10-Apr-08 10:55
sitebuilderLuc Pattyn10-Apr-08 10:55 
GeneralDataGridView binding Pin
Shekelele10-Apr-08 9:54
Shekelele10-Apr-08 9:54 
GeneralRe: DataGridView binding Pin
sarilee10-Apr-08 21:09
sarilee10-Apr-08 21:09 
GeneralRe: DataGridView binding Pin
Shekelele11-Apr-08 4:24
Shekelele11-Apr-08 4:24 
QuestionVideo motion detection and cursor movement Pin
=Momi=10-Apr-08 9:52
=Momi=10-Apr-08 9:52 
GeneralRe: Video motion detection and cursor movement Pin
Christian Graus10-Apr-08 13:00
protectorChristian Graus10-Apr-08 13:00 
QuestionBitmap + Clipboard + Transparency = Blue Background? Pin
Chadwick Posey10-Apr-08 9:49
Chadwick Posey10-Apr-08 9:49 
Hey folks, I think this is my first time asking a question here, so please go easy on me Wink | ;)

I have an application wherein I render a transparent bitmap (to be specific -- a chart with a transparent background).... When I do, I then try to copy it to the clipboard using:

<br />
bmp.Save(filename);   // Save to FS<br />
Clipboard.SetImage(bmp);   // Save to Clipboard<br />


Now if I open Excel, and click Paste (from the clipboard), I end up with a copy of my chart with this lovely blue background wherever the transparency color was.

If I, instead, use Excel's Insert->Image->From File, the chart's transparency is preserved... (same bitmap as above, just one is saved to file system, the other is copied via clipboard)

What gives? Am I copying the bitmap incorrectly, or is there something else I need to do to make copy and paste of transparent bitmaps a reality?

(I have searched high and low, and nothing seems to answer this question... I have tried all kinds of things to resolve this on my own, even using MakeTransparent() (which has no effect, since the bitmap was already transparent to begin with (as evidenced by the Flags value on the bitmap being "2" which is hasTransparency)... I have tried converting the image, using color maps, using SetClipboardDataObject, converting to an HBITMAP object or whatever.... all kinds of things, nothing seems to avert this issue....)

Thanks in Advance!

=============================
I'm a developer, he's a developer, she's a developer, Wouldn'tcha like to be a developer too?

AnswerRe: Bitmap + Clipboard + Transparency = Blue Background? Pin
Christian Graus10-Apr-08 13:03
protectorChristian Graus10-Apr-08 13:03 
GeneralVeryfy user and password agains a windows account Pin
Ola E10-Apr-08 9:11
Ola E10-Apr-08 9:11 
GeneralHelp with pseudo code / C# Pin
srmanuel10-Apr-08 8:19
srmanuel10-Apr-08 8:19 
GeneralRe: Help with pseudo code / C# Pin
Christian Graus10-Apr-08 13:06
protectorChristian Graus10-Apr-08 13:06 
GeneralRe: Help with pseudo code / C# Pin
Guffa10-Apr-08 16:49
Guffa10-Apr-08 16:49 
Generalcheckboxes in datagrids Pin
stephan_00710-Apr-08 7:44
stephan_00710-Apr-08 7:44 
GeneralRe: checkboxes in datagrids Pin
half-life10-Apr-08 8:07
half-life10-Apr-08 8:07 
Questionhow to get and use password of current windows user Pin
stephan_00710-Apr-08 7:36
stephan_00710-Apr-08 7:36 
AnswerRe: how to get and use password of current windows user Pin
nes2world10-Apr-08 8:30
nes2world10-Apr-08 8:30 
AnswerRe: how to get and use password of current windows user Pin
PIEBALDconsult10-Apr-08 9:57
mvePIEBALDconsult10-Apr-08 9:57 
GeneralRe: how to get and use password of current windows user Pin
stephan_00711-Apr-08 7:36
stephan_00711-Apr-08 7:36 
QuestionHow to manipulate other programs? Pin
nes2world10-Apr-08 7:22
nes2world10-Apr-08 7:22 
AnswerRe: How to manipulate other programs? Pin
stephan_00710-Apr-08 7:41
stephan_00710-Apr-08 7:41 
AnswerRe: How to manipulate other programs? Pin
Christian Graus10-Apr-08 13:08
protectorChristian Graus10-Apr-08 13:08 
QuestionHow to retreive the Driver Name Pin
iggydarsa10-Apr-08 6:05
iggydarsa10-Apr-08 6:05 
AnswerRe: How to retreive the Driver Name Pin
Luc Pattyn10-Apr-08 6:25
sitebuilderLuc Pattyn10-Apr-08 6:25 
GeneralRe: How to retreive the Driver Name Pin
iggydarsa10-Apr-08 6:31
iggydarsa10-Apr-08 6:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.