2008-09-21 13:01:22

kuntilanak
» FTalkElite
FTalk Level: zero
4412
0
1969-12-31

Re: Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM

[img]http://kuntilanak.site90.com/fonts/customized_text.php?width=350&height=40&text=Credit%20By%20Andha[/img] [b]ini php nya.....[/b] [quote]<?php /* Customized Font Type || By si-andha Visit http://si-andha.web44.net */ class andhaCostumizedText { var $font = '[color=orange][b]fonts/fontname.ttf[/b][/color]'; function andhaCostumizedText($width,$height,$text) { $font_size = [color=magenta][b]30[/b][/color]; $image = @imagecreate($width, $height) or die('Text is missing'); $background_color = imagecolorallocate($image, [color=red][b]255, 255, 255[/b][/color]); $text_color = imagecolorallocate($image, [color=green][b]0, 0, 0[/b][/color]); $textbox = imagettfbbox($font_size, 0, $this->font, $text); $x = ($width - $textbox[4])/2; $y = ($height - $textbox[5])/2; imagettftext($image, $font_size, [color=purple][b]0[/b][/color], $x, $y, $text_color, $this->font , $text); imagejpeg($image); } } $width = isset($_GET['width']) ? $_GET['width'] : ''; $height = isset($_GET['height']) ? $_GET['height'] : ''; $text = isset($_GET['text']) ? $_GET['text'] : ''; header('Content-Type: image/jpeg'); $andha = new andhaCostumizedText($width,$height,$text); ?>[/quote] [quote][color=magenta][b]Magenta[/b][/color] = Ukuran dari font. [color=red][b]Merah[/b][/color] = Warna dari background, setting menggunakan RGB (contoh di atas adalah untuk warna putih) [color=green][b]hijau[/b][/color] = Warna dari font, setting menggunakan RGB (contoh di atas adalah untuk warna hitam) [color=orange][b]Orange[/b][/color] = Nama dari font yg udah lu upload di hostingan lu. [color=purple][b]Ungu[/b][/color] = Derajat kemiringan dari font.[/quote] [quote]<img src="[color=magenta][b]http://si-andha.web44.net/customized_text.php[/b][/color]?width=[color=red][b]350[/b][/color]&height=[color=green][b]90[/b][/color]&text=[color=purple][b]Text[/b][/color]">[/quote] [quote][color=magenta][b]Magenta[/b][/color] =URL dari file .php lu. [color=red][b]Merah[/b][/color] = Lebar dari text. [color=purple][b]Ungu[/b][/color] = Text yg lu mau. [color=green][b]hijau[/b][/color] = Tinggi dari text.[/quote] [b]Important Note[/b] 1.Pastiin hostingan lu support untuk php. 2.Text ini berbentuk image, jadi lu musti sesuaikan besar image dengan panjang text lu. 3.Gunakan converter untuk merubah kode hex menjadi rgb. di sini [url]http://www.colorcombo.com/bghex.html[/url]

Last edited by kuntilanak (2008-09-21 13:08:37)

Board footer

© 2024 F Talk

Current time is 11:23

[ 12 queries - 0.281 second ]
Privacy Policy