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
setalpha() ??
Re: setalpha() ??
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
![Image](http://www.pflegeplus.com/IMAGES/Alpha2.jpg)
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 ).
![Image](http://www.pflegeplus.com/IMAGES/Pf1.jpg)
A non alphablended image uses the background-color to be transparent.
![Image](http://www.pflegeplus.com/IMAGES/Pf2.jpg)
best regards
Uwe![Very Happy :D](./images/smilies/icon_biggrin.gif)
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
![Image](http://www.pflegeplus.com/IMAGES/Alpha2.jpg)
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 ).
![Image](http://www.pflegeplus.com/IMAGES/Pf1.jpg)
A non alphablended image uses the background-color to be transparent.
![Image](http://www.pflegeplus.com/IMAGES/Pf2.jpg)
best regards
Uwe
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Last edited by ukoenig on Thu Feb 25, 2016 8:05 pm, edited 5 times in total.
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Antonio Linares
- Site Admin
- Posts: 42520
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact: