1)
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?
- for($w=0; $w<imagesx($hPhoto); $w++ ){
- for($h=0; $h<imagesy($hPhoto); $h++ ){
- $alpha = 127 - (($maskColorAr['red']/256 + $maskColorAr['green']/256 + $maskColorAr['blue']/256) / 3) * 127;
- $outColorIndex = imagecolorexactalpha($hUot, $photoColorAr['red'], $photoColorAr['green'], $photoColorAr['blue'], $alpha);
- }
- }