Escrever Em Imagem Png
#1
Posted 31/05/2005, 20:16
eu venho observando em diverços sites onde voce coloca seu nome no endereço ou em um formulario e é aberto uma pagina com uma imagem e seu nome la no meio...
por exemplo www.qualquercoisa.com.br/?nome=Bombanet
ae abre uma imagem escrito bombanet la dentro...
como fazer isso??
WebMaster
www.iMessenger.com.br
#3
Posted 01/06/2005, 20:55
WebMaster
www.iMessenger.com.br
#4
Posted 04/06/2005, 01:14
por exemplo especificar tamanho,fonte etc...
obrigado
WebMaster
www.iMessenger.com.br
#5
Posted 04/06/2005, 10:11
isso aqui vai te ajudar, é um script para gerar codigos de verificação para cadastro.Nao encontrei uma explicaçao detalhada de como formatar a fonte...
por exemplo especificar tamanho,fonte etc...
obrigado
<?php session_start(); header("Content-type: image/png"); class createimage{ // Matriz para criar o texto para imagem var $str="0123456789abcdefghijklmnopqrstuvwxyz"; var $width = 160;//Largura da imagem var $height = 60;//Altura da imagem // Arquivos com Fontes TrueType var $fonts = array("times.ttf","309.ttf"); // Diretório da Fontes var $path = "/"; // Cores no formato hexadecimal var $hexcolors = array("#FFFF00", "#000000", "#FF0000", "#FF00FF", "#808080", "#008000", "#00FF00", "#000080", "#800000", "#008080", "#800080", "#0000FF", "#C0C0C0", "#808000", "#00FFFF"); var $image; // Gera uma semente para ser utilizada pela função srand function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } // Converte hexadecimal para rgb function hex2rgb($hex) { $hex = str_replace('#','',$hex); $rgb = array('r' => hexdec(substr($hex,0,2)), 'g' => hexdec(substr($hex,2,2)), 'b' => hexdec(substr($hex,4,2))); return $rgb; } // Aloca uma cor para imagem function color($value){ $rgb = $this->hex2rgb($value); return ImageColorAllocate($this->image, $rgb['r'], $rgb['g'], $rgb['b']); } // Aloca uma cor aleatória para imagem function randcolor(){ srand($this->make_seed()); shuffle($this->hexcolors); return $this->color($this->hexcolors[0]); } // Cria uma linha em posição e cor aleatória function randline(){ srand($this->make_seed()); shuffle($this->hexcolors); $i=rand(0, $this->width); $k=rand(0, $this->width); imagesetthickness ($this->image, 2); imageline($this->image,$i,0,$k,$this->height,$this->randcolor()); } // Cria um quadrado 10X10 em posição e cor aleatória function randsquare(){ imagesetthickness ($this->image, 1); srand($this->make_seed()); $x=rand(0, ($this->width-15)); $y=rand(0, ($this->height-15)); imageFilledRectangle( $this->image, $x, $y, $x+10, $y+10, $this->color('#EFEFEF')); imagerectangle ( $this->image, $x, $y, $x+10, $y+10, $this->randcolor()); } // Cria uma imagem com texto aleatório e retorno o texto function output(){ $defstr=""; $this->image = ImageCreate($this->width,$this->height); $background = $this->color('#EFEFEF'); imageFilledRectangle($this->image, 0,0,$this->width , $this->height, $background); srand($this->make_seed()); for ($i=0;$i < 4;$i++) { $this->str=str_shuffle($this->str); shuffle($this->hexcolors); shuffle($this->fonts); $char=$this->str[0]; $defstr.=$char; imagettftext($this->image, 40, 0,($i*40+5), rand(40,($this->height-10)), $this->randcolor(), $this->path.$this->fonts[0],$char); } for ($k=0;$k < 3;$k++){ $this->randline(); $this->randsquare(); } ImagePng($this->image); ImageDestroy($this->image); return $defstr; } } $img = new createimage; $_SESSION["valor"]=$img->output(); ?>
é so jogar os arquivos de fontes na mesma pasta e pronto
// Arquivos com Fontes TrueType
var $fonts = array("times.ttf","309.ttf");
WebSite: www.guiamedianeira.com.br
Profissão: WebDesigner / Programador
MSN:luciano@guiamedianeira.com.br
#6
Posted 28/10/2017, 09:02
Priligy Official Site Prescriptions For Propecia In Nj viagra Prezzo Cialis Originale Farmacia Best Buy On Cialus Comprar Cialis Andorra Precio
#7
Posted 28/10/2017, 22:57
Acheter Colchicine Cialis Pas Cher France viagra online pharmacy Buying Levitra In Mexico Diflucan Mejor Cialis Levitra
Orlistat Achat Ligne Provera Without Dr Approval Best Website Shop cialis online Kamagra Pharmacy Cephalexin 500 Mg Dosages Tev How Do Guys Last Longer
1 Mg Finasteride Cheap Propecia viagra prescription Farmacia Kamagra Francia Buy Accutane Online From Canada Priligy Kaufen Deutschland
Viagra Frau Tabletten Darunavir Keflex Tooth Extraction non prescription levitra Venta De Cialis En Andorra
Trihexyphenidyl levitra prices Canadian Pharmacy In Florida Xenical Pas Cher France
#8
Posted 29/10/2017, 00:13
Amoxicillin Ld50 viagra Diet Pills Without Prescripton Best Acquisto Kamagra Metz Amoxicillin Clavulanic Acid Pregnancy
Buy Cialis Generic Online 5mg France Baclofene Acheter viagra Cheap Viagra No Prescription Bulk Cialas isotretinoin 10mg skin health
Cialis Internet Forum Koflet viagra Metronidazole Overnight Acheter Cialis Internet Est
Cialis generika 20mg kaufen cialis Generic Tab Acticin In Usa Visa Accepted Dogs And Cephalexin
Best Sites For Viagra Propecia Heart Problems eva pills levitra Propecia Eficacia Efectos Secundarios Kamagra Farmacias
Keflex To Treat Ear Infections Levitra Vs Levitra Professional viagra I Want To Buy Viagra Acheter Cialis Paypal Viagra Wirkung Forum
Effects Of Viagra 25 Mg viagra Levitra Generico 5 Mg Roaccutane 5mg Cialis 10 Mg Precio Farmacia Espana
Propecia Sterilizzazione viagra prescription Clomid Achat Vallee D Aoste Online Cialis Pharmacy
Direct Pharmacy Usa Buy Synthroid Without Rx Can You Take Benadryl With Amoxicillin viagra Calculations For Suspension Amoxicillin Levitra Economico Cialis Stripes Kaufen
Priligy Buy Online Viagra 24h Zithromax And Renal Function viagra Wie Teuer Ist Viagra What Does Lasix Do For Horses
Cytotec Doc Amoxicillin Dosage For Ear Infection Toddler viagra Should You Give A Cat Amoxicillin Levitra On Sale Keflex Used To Treat Ear Infections
Lasix Delivered Overnight Achat Propecia 1mg viagra Azithromycin Vs Keflex For Cellulitis Does Zithromax Upset Your Stomach
#10
Posted 29/10/2017, 07:08
Usos De Propecia Prix Propecia Nancy Zithromax Rash Pictures over seas orders for vardenafil Fast Sildenafil Citrate New York
Priligy Farmacia Ahumada Order Kamagra Online Uk Feline Amoxicillin Drops viagra Propecia Rogaine Combined Hair Loss Calf Pain And Cephalexin
Cialis Online Mastercard Acheter Du Viagra Pas Cher En France viagra Confezione Viagra Discount Generic Levitra
Cialis 100 Mg Online No Prescription Priligy Preis Apotheke Progesterone Medicine gen health levitra Best Prices On Ed Drugs Achat Nolvadex Proviron Propecia Pve
Zithromax Pack cialis buy online Amoxicilina Antibiotic
Predisone On Line viagra Hydrochlorothiazide 25mg Where Can I Buy In Usa
Viagra Online Canadian Pharmacy online pharmacy Order Valtrex Online Prix Cialis
#11
Posted 29/10/2017, 09:25
Buy Kamagra Next Day Delivery cialis price Cialis Bon Marche Achat Cialis Petite Quantite Macrobid Where To Buy Inverness
#12
Posted 29/10/2017, 09:57
Zithromax Works For 10 Days Zithromax Pfizer 250 Mg Viagra Generico Bonifico viagra What Does Keflex Do
Order Online Fluoxetine Bulimia Medication Internet Shop buy viagra online Achat Vardenafil Propecia Effects On Women Indicated
Generico De Propecia Comprar Cialis Discount Purchase Fluoxetine No Prior Script Amoxicillin Gonorrhea Single Dose viagra Viagra Sales Canada Levitra Efectos En Jovenes
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)