Regions are great and work in all Win Versions but Alpha Blending is only implemented in Win2K+, if you have good drivers even alpha doesn't consume much cpu, on Linux both Alpha and Regions should be supported already, i have noticed TCanvas has TRegion ? Was it meant to be a matrix with the alpha or transparency pixels ? It would be nice if one could use a bw or gray picture(mask) for alpha or transparency on window based controls or even programatically with an array matrix wich could be taken from a 32 bit picture, anyways it is a godd ideea and can probably be implemented in a crossplatform way :)
On 2/28/06, Micha Nelissen <[EMAIL PROTECTED]> wrote: > Felipe Monteiro de Carvalho wrote: > > On 2/27/06, Micha Nelissen <[EMAIL PROTECTED]> wrote: > >> I think SetWindowRgn makes part of a window transparent (the parts not > >> in the region). For example, winamp can do it: have oddly shaped sizes. > > > > well ... good to know new things =) > > > > I did not know that such API function existed. > > > > Maybe it can be used to implement those Delphi properties? > > > > This could be implemented on the widgetset and at least on Qt4 we also > > know how to do that now. > > The usual way to implement this is to translate the necessary calls of > the winapi (SetWindowRgn and region creation functions in this case) to > the target platform. Then the delphi component should more or less work > "as-is". > > Micha > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
