πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.borland-+
Article #1

Re: Anti-aliasing a TBitMap

#1
From: Arnaud JAN
Date: Wed, 07 Oct 1998 00:00
23 lines
1857 bytes
Transparent Form :

You have to define a Region (with CreateRectRgn, CombineRgn) and to set
this region for the form's window (with SetWindowRgn).
To define the region, you have to analyse the bitmap to find the
transparent color region.

Have a look to Delphi Super Page (I can't remember the address you'll find
it with a search engine), and try to find a project named CoolForm.

Anti-aliasing :

If you know how antialiasing works you can retrieve and set the color of a
bitmap pixel by using the property pixel of the bitmap's canvas .

Marcel de Haas <cmdehaas@dds.nl> a οΏ½crit dans l'article
<907702471.28407.0.rover.d4ee2dd9@news.demon.nl>...
> Hello Delphi Dudes & Dudettes,
> ...
> I need some code for making a form and a bitmap transparent so that the
> bitmap will represent the form (the 'form' has the shape of the bitmap).
>... 
> 
Technical Details
Message-ID: <01bdf1e4$ce3a0bb0$0400005a@developpement>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <907702471.28407.0.rover.d4ee2dd9@news.demon.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f7f35,74399aad74d5d226
X-Google-Attributes: gidf7f35,public
X-Google-Thread: 1091e5,74399aad74d5d226
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 10c3df,74399aad74d5d226
X-Google-Attributes: gid10c3df,public
X-Google-Thread: 112b07,74399aad74d5d226
X-Google-Attributes: gid112b07,public
X-Google-Thread: 1043cf,74399aad74d5d226
X-Google-Attributes: gid1043cf,public
X-Google-Thread: 11f7ed,15a85aec7a5406f6,start
X-Google-Attributes: gid11f7ed,public
From: "Arnaud JAN" <bioseb@wanadoo.fr>
Subject: Re: Anti-aliasing a TBitMap
Date: 1998/10/07
Message-ID: <01bdf1e4$ce3a0bb0$0400005a@developpement>
X-Deja-AN: 398607761
References: <907702471.28407.0.rover.d4ee2dd9@news.demon.nl>
Organization: Bioseb
Newsgroups: alt.comp.lang.borland-+,borland.public.delphi.objectpascal,borland.public.delphi.opentoolsapi,borland.public.delphi.vcl.components.writing,borland.public.delphi.winapi,comp.lang.pascal.de