On Wed, 16 Nov 2005 01:44:00 +0100
Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> On Tue, 15 Nov 2005 22:12:33 -0200
> Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote:
>
> > Mattias Gaertner wrote:
> > > Delphi uses the corner pixel (0,Height-1) to decide, which color is
> > > the transparent color.
> > > It's not yet implemented in the LCL TBitmap. It's a Delphi hack to add
> > > transparency to .bmp files.
> >
> > Sorry, but this is incorrect.
>
> You are right.
>
> > This has being recently implemented.
>
> No.
> It has been implemented to *always* use the 0,Height-1 pixel for
> transparency. AFAIK Delphi does it only when TransparentColor=clDefault.
>
> We need two additional things:
> - ability to read normal .bmp as they are, i.e. without holes
> - ability to define a custom TransparentColor as Delphi
I implemented it.
For example:
To load a bitmap without transparency:
Set ABitmap.TransparentColor:=clNone before loading.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives