Re: Image background

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Image background
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tcl
Date : 17. Oct 2024, 20:53:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <verq04$2s2jq$5@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 10/17/2024 3:49 PM, Paul Obermeier wrote:
      proc SetTransparentColor { phImg { red 255 } { green 255 } { blue 255 } } {
         set colorStr [format "#%02x%02x%02x" $red $green $blue]
         set y 0
         foreach row [$phImg data] {
             set x 0
             foreach pixel $row {
                 if { $colorStr eq $pixel } {
                     $phImg transparency set $x $y 1
                 }
                 incr x
             }
             incr y
         }
     }
 Paul
Awesome! Thanks a lot.

Date Sujet#  Auteur
17 Oct 24 * Image background8saito
17 Oct 24 +* Re: Image background5Rich
17 Oct 24 i+* Re: Image background3saito
17 Oct 24 ii`* Re: Image background2Rich
17 Oct 24 ii `- Re: Image background1saito
17 Oct 24 i`- Re: Image background1saito
17 Oct 24 `* Re: Image background2Paul Obermeier
17 Oct 24  `- Re: Image background1saito

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal