Jump to content


Photo

Escrever Em Imagem Png


  • Faça o login para participar
11 replies to this topic

#1 Bomba Net

Bomba Net

    12 Horas

  • Usuários
  • 205 posts
  • Sexo:Masculino
  • Localidade:São José dos Campos
  • Interesses:me intereso em atuar nas areas de webdesingner e de webdeveloper

Posted 31/05/2005, 20:16

Olá
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??
Everton Lima
WebMaster

www.iMessenger.com.br

#2 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 31/05/2005, 20:29

http://www.php.net/gd
Klaus Paiva
Conheça também: Taperás

#3 Bomba Net

Bomba Net

    12 Horas

  • Usuários
  • 205 posts
  • Sexo:Masculino
  • Localidade:São José dos Campos
  • Interesses:me intereso em atuar nas areas de webdesingner e de webdeveloper

Posted 01/06/2005, 20:55

vlw ae cara me ajudou 100% vlw mesmoo...
Everton Lima
WebMaster

www.iMessenger.com.br

#4 Bomba Net

Bomba Net

    12 Horas

  • Usuários
  • 205 posts
  • Sexo:Masculino
  • Localidade:São José dos Campos
  • Interesses:me intereso em atuar nas areas de webdesingner e de webdeveloper

Posted 04/06/2005, 01:14

Nao encontrei uma explicaçao detalhada de como formatar a fonte...
por exemplo especificar tamanho,fonte etc...

obrigado
Everton Lima
WebMaster

www.iMessenger.com.br

#5 <?PHPMAN?>

<?PHPMAN?>

    Ativo

  • Usuários
  • 300 posts
  • Sexo:Não informado

Posted 04/06/2005, 10:11

Nao encontrei uma explicaçao detalhada de como formatar a fonte...
por exemplo especificar tamanho,fonte etc...

obrigado

isso aqui vai te ajudar, é um script para gerar codigos de verificação para cadastro.

<?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");


Nome: Luciano André Bruch
WebSite: www.guiamedianeira.com.br
Profissão: WebDesigner / Programador
MSN:luciano@guiamedianeira.com.br

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 28/10/2017, 09:02

Cod Generic Finasteride Dutasteride Buy Now Medication Discount Erectile Dysfunction Drugs buy viagra Viagra Combien Ca Coute En Belgique
Priligy Official Site Prescriptions For Propecia In Nj viagra Prezzo Cialis Originale Farmacia Best Buy On Cialus Comprar Cialis Andorra Precio

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 28/10/2017, 22:57

Propecia Online India Amoxicillin And Coumadin Buy No Prescription Ivermectin Online levitra coupon free trial Solian Buying Secure Ordering Stendra 50mg
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 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 00:13

Prezzi Propecia Finasteride 1mg viagra Viagra Internet Bestellen
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

#9 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 05:47

Cialis Generique Belgique viagra cialis Le Viagra Est Il Efficace

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 29/10/2017, 07:08

Vigrra Chemist On Line viagra Viagra Frau Wirkung
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 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 29/10/2017, 09:25

Amoxil 1 Prix Viagra 50 Mg Pfizer cialis price Keflex For Uti Emedicine Acticin Store Ciprofloxacin Manufacturing Process
Buy Kamagra Next Day Delivery cialis price Cialis Bon Marche Achat Cialis Petite Quantite Macrobid Where To Buy Inverness

#12 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 29/10/2017, 09:57

Bentyl In Germany viagra Acheter Levitra Effet Secondaire Viagra Argentinien Reputable Pharmacies In Mexico
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)

IPB Skin By Virteq