Re: png transparency

From: Boris Nienke (nospam_at_nsonic.de)
Date: 02/27/04


Date: Fri, 27 Feb 2004 09:45:38 +0100

On Fri, 27 Feb 2004 07:50:43 GMT, Elisa wrote:

> Hi Chris,
>
>> Sorry to side with Microsoft on this, but yes, in my book that does mean
>> transparency is supported. [...] Not supported, IMHO, means "can't be done"
>
> Sorry if this is getting slightly off-topic, but this morning during our
> project meeting our team had just such a great laugh with your book's
> interpretation of the word "SUPPORTED" as "it CAN be done", I couldn't
> resist.
>
> If your book hasn't been published yet, feel free to use any of the
> examples below to illustrate your definition of "SUPPORTED".
<snip>

*LOL* :-D

Humor is, if you keep on laughing ;-)

I really fell with you. Of course, transparency is support by the "System"
(i can draw one bitmap above an other with a transparent color) - but not
by any of the standard controls.

No one has the time to write all standard-control AGAIN just to have
transparency.

AND: someone should define "transparency"... what does it mean if it is
"supported"?

a) There is code with which you can draw bitmaps onto other bitmaps and
left out a specific color (that's what we have)

b) Use Bitmaps as Icons or something in ListView/-Boxes/-etc... and use a
given color as transparent color so that the underlaying control(color)
will be visible? (that's what many of us need/like to have)

b2) ...an read use the transparent-information of the file (GIF, PNG)...

c) When you use a background-image for the whole form - then let this image
shine thru controls - so Labels, Radio-buttons, checkboxes etc. will not
cover a rectangle but just draw the control and the text.... (when will we
get this?)

c2) define a % value for transparency so that a panel could cover the
background 50% for example (which is alphachanel-transparency) (which would
be cool and maybe usefull for some applications but i don't think it's a
top priority?)

Really hard to read "can be done! just write your own control" more
often...
...because then the answere could be: "can be done! use C++ (where it is
supported)" .. or "can be done! use C++ and write your own system from
scratch" :-)

Boris (who has written his first owner-draw-listbox - still without
columns)


Quantcast