[lazarus] TGraphic Transparency

Marc Weustink marc at dommelstein.net
Fri Mar 21 14:47:39 EST 2003

At 11:05 21-3-2003 -0600, Tony Maro wrote:
>On Fri, 2003-03-21 at 09:25, andrew johnson wrote:
> > > >
> > > > 2.) how should it be handled on types which don't support it natively
> > >
> > >     Obviously apply the transparency to the graphic as it's being drawn.
> > > Well obvious to me, but I'm infamous for misunderstanding the question.
> > >
> >
> > well the question here is _what_ transparency, i.e. how is this
> > transparency determined. If it is just a color is replaced like I think
> > I remember, how is that colour determined? where does that colour come
> > from? is it just a generic default? I don't think so because I remember
> > loading different bitmaps with different colours used and Delphi almost
> > always picked the right one. Anyway, like I say its been awhile since I
> > had use of this so I can't remember the ins and outs of how it worked,
> > so its hard to guess how it should work.
>I seem to recall that for some things (maybe I'm thinking of just a very 
>unique situation) they would take the transparency color from the color of 
>the top left most pixel.

IFAIK they use the bottom left pixel in situations where you cant tell what 
the transparent color is.


>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

More information about the Lazarus mailing list