|
-
Apr 12th, 2006, 03:02 PM
#1
Thread Starter
Fanatic Member
[2005] GDI+ Transparent Color
I have an image I'm drawing with a graphics object. I simply want to make a certain color on that image transparent. How can I do this? Thanks.
-
Apr 12th, 2006, 03:20 PM
#2
Hyperactive Member
Re: [2005] GDI+ Transparent Color
See the ImageAttributes.SetRemapTable Method.
-
Apr 12th, 2006, 03:45 PM
#3
Re: [2005] GDI+ Transparent Color
Look through the intellisense for the image item you want to draw. It may or may not have a "MakeColorTransparent()" method. I know that Bitmaps have it, can't remember if Images objects do though.
I don't live here any more.
-
Apr 12th, 2006, 04:00 PM
#4
Re: [2005] GDI+ Transparent Color
 Originally Posted by wossname
Look through the intellisense for the image item you want to draw. It may or may not have a "MakeColorTransparent()" method. I know that Bitmaps have it, can't remember if Images objects do though.
Image does not have MakeColorTransparent, but as you said Bitmap objects do. I would imagine that since Bitmap inherits from Image, that you could use a bitmap object in place of an Image object when calling the DrawImage method of the graphics object (since that method only takes an Image, and not a Bitmap type)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|