PC Review


Reply
Thread Tools Rate Thread

Bitmap with transparent colour?

 
 
Sonnich Jensen
Guest
Posts: n/a
 
      25th May 2011
Hi all

I have a resource, I get it as a bitmap called icon

e.Graphics.DrawImage(icon, iPageButton1, top);

But I'd like to have some parts of it transparent, how do I do that?

 
Reply With Quote
 
 
 
 
Ulrik Magnusson
Guest
Posts: n/a
 
      26th May 2011
On May 25, 4:53*pm, Sonnich Jensen <sonnichjen...@gmail.com> wrote:
> Hi all
>
> I have a resource, I get it as a bitmap called icon
>
> e.Graphics.DrawImage(icon, iPageButton1, top);
>
> But I'd like to have some parts of it transparent, how do I do that?


Look at ImageAttributes.SetColor():
http://msdn.microsoft.com/en-us/library/b67599fw.aspx

Here's an example: http://msdn.microsoft.com/en-us/library/ms172507.aspx
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent Bitmap Drawn onto Transparent control NickP Microsoft VB .NET 3 11th Jul 2007 10:27 AM
Transparent bitmap Button =?Utf-8?B?TWFuaXNo?= Microsoft Dot NET Compact Framework 0 26th Oct 2006 11:46 AM
Transparent GIF using Bitmap.Save() =?Utf-8?B?RGFsZQ==?= Microsoft C# .NET 5 21st Oct 2006 02:22 AM
Bitmap transparent color not so transparent it seems Peter Oliphant Microsoft VC .NET 7 18th Oct 2005 01:41 AM
How to set Bitmap background to transparent blackegg Microsoft C# .NET 2 17th Nov 2004 02:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:16 AM.