translucent text PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: fundisom.com
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:GPL
  • Company: fundisom (View more)

translucent text script description:




Publisher review:
Translucent Text - Translucent text is not as simple as outlining or shadowing, but it's not particularly hard. Translucent text is not as simple as outlining or shadowing, but it's not particularly hard. A translucent image is just something partially invisible, or clear.

This is done by drawing the image onto a buffer, editing the buffer, and then merging the buffer back onto the original image.

function imagettftexttransparent (& $im ,$size ,$angle ,$x ,$y ,& $col ,$fontfile ,$text ,$pct ){ $im_w = imagesx ($im ); // Get the image width $im_h = imagesy ($im ); // Get the image height $new = imagecreate ($im_w ,$im_h ); // Create a buffer imagesetpixel ($im ,$im_w -1,0,$col ); // Set a pixel down, so we can easily get the color $index = imagecolorat ($im ,$im_w -1,0); // Get the color at that pixel $rgb = imagecolorsforindex ($im ,$index ); // Get the index of that color $r = $rgb ["red" ]; // Get the red value $g = $rgb ["green" ]; // Get the green value $b = $rgb ["blue" ]; // Get the blue value $color = imagecolorallocate ($new ,$r ,$g ,$b ); // Allocate this color on the buffer $copy = imagecopy ($new ,$im ,0,0,0,0,$im_w ,$im_h ); // Copy the old image onto the buffer $text = imagettftext ($new ,$size ,$angle ,$x ,$y ,$color ,$fontfile ,$text ); // Draw the text $merge = imagecopymerge ($im ,$new ,0,0,0,0,$im_w ,$im_h ,$pct ); // Copy the buffer back onto the original image imagedestroy ($new ); // Destroy the buffer }?>
translucent text is a PHP script for Snippets scripts design by fundisom. It runs on following operating system: Windows / Linux / BSD.

Operating system:
Windows / Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5