tumblr statistics


Enviar Respuesta 
 
Calificación:
  • 0 Votos - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Crear un captcha en vb + imagemagick
29-06-2010, 02:46 PM (Este mensaje fue modificado por última vez en: 29-06-2010 02:46 PM por xaviclave.)
Mensaje: #1
Crear un captcha en vb + imagemagick
Os dejo un ejemplo de como crear una imagen captcha el resultado lo he dejado abajo.

Cita:comando = ""

' ruta de imagemagick
comando = "C:\imagemagick\convert.exe"

' tamaño de la imagen
comando = comando + " -size 280x70 xc:white -fill black -stroke black -strokewidth 2"

' tipo de fuente
comando = comando + " -font arial -pointsize 52"

' texto interior
comando = comando + " -fill yellow -draw ""rotate 30 translate 40,30 Text 0, 0 '1'"" "
comando = comando + " -fill black -draw ""rotate -10 translate 60,50 text 0,0 '2'"" "
comando = comando + " -fill red -draw ""rotate 5 translate 90,40 text 0,0 '3'"" "
comando = comando + " -fill orange -draw ""rotate -10 translate 120,80 text 0,0 '4'"" "
comando = comando + " -fill blue -draw ""rotate -5 translate 160,60 text 0,0 '5'"" "
comando = comando + " -fill cyan -draw ""rotate -0 translate 190,60 text 0,0 '6'"" "
comando = comando + " -fill white -draw ""rotate 2 translate 220,60 text 0,0 '7'"" "

' lineas interiores
comando = comando + " -fill none -strokewidth 2 "
comando = comando + " -draw ""bezier 20,270 45,10 100,70 140,10 "" "
comando = comando + " -strokewidth 3 -draw ""polyline 150,0 200,60 280,30"" "

' crear onda
comando = comando + " -wave 4x50 -swirl 25 "

' ruta del destino de la imagen
comando = comando + "c:\imagemagick\captcha.gif"

Shell comando


Archivo(s) Adjuntos Miniatura(s)
   
Encuentra todos los mensajes de este usuario
Cita este mensaje en tu respuesta
Enviar Respuesta 


Salto de Foro:


Contáctanos | Servidores web | Volver Arriba | Volver al Contenido | Modo (Archivo) Simple | Sindicación RSS