Re: Drawing an icon so that a particular color is transparent
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Mon, 04 Aug 2008 11:49:49 -0400
Draw it as a transparent color! Use the "Screen Color" as the color (that's the little
thing that looks like a display screen and is green)
joe
On Sun, 03 Aug 2008 17:17:04 -0400, Edward Diener <eddielee_no_spam_here@xxxxxxxxxxxxxx>
wrote:
In VS 2008 in a project I create an icon as a resource in various image.
formats using the VS 2008 icon editor. In my code I load the icon with
LoadImage and draw it with DrawIconEx on my WM_PAINT's DC.
The image draws in the correct place but I want a particular color in
the image, white, to be transparent so the image looks better against
the background brush of the window, which is a shade of blue.
Is there a way of making a particular color of the icon to show as
transparent, so the background color of the window shows through it ?
I could try to change the particular color in the icon to the background
color of the window, but I would like a more generic way of doing this
if possible. Thanks !
- Follow-Ups:
- Re: Drawing an icon so that a particular color is transparent
- From: Edward Diener
- Re: Drawing an icon so that a particular color is transparent
- References:
- Drawing an icon so that a particular color is transparent
- From: Edward Diener
- Drawing an icon so that a particular color is transparent
- Prev by Date: Re: Problem with GDI and Aero
- Next by Date: Re: How to merge font subset and font delta extracted from EMF spool file.
- Previous by thread: Re: Drawing an icon so that a particular color is transparent
- Next by thread: Re: Drawing an icon so that a particular color is transparent
- Index(es):
Relevant Pages
|