FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour setalpha() ??
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
setalpha() ??
Posted: Wed Feb 24, 2016 05:26 PM

I'am testing the testimg.prg and found a SetAlpha() function, but i dont know how to use it.

any help about this function ?

tks

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: setalpha() ??
Posted: Thu Feb 25, 2016 11:45 AM
Romeo ,

a Alphablended Image is needed, in case You want to show a SHADOW
To show a simple background transparent, You can use a normal color
SetAlpha( .F. ) shows the transparent-area of a ALPHAblended image as a BLACK color
I don't know any reason to use it.
But You can use something like :
if IsAlpha( aTemp[ n ][ 1 ] )
to detect, if a image includes a alpha-channel



Very useful to download PIXELFORMER

Some links
viewtopic.php?f=3&t=23687&p=127412#p127412
viewtopic.php?f=3&t=17288&p=89855&hilit=pixelformer#p89855

A alphablended image ( BMP or PNG ) is used to show a shadow and a transparent level of a color ( yellow ).



A non alphablended image uses the background-color to be transparent.



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: setalpha() ??
Posted: Thu Feb 25, 2016 03:00 PM

many many tks
R

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: setalpha() ??
Posted: Thu Feb 25, 2016 06:23 PM

Uwe,

many thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion