Tema: Imagick php
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/11/2017, 17:29
Avatar de petit89
petit89
 
Fecha de Ingreso: marzo-2011
Mensajes: 1.135
Antigüedad: 13 años, 1 mes
Puntos: 170
Respuesta: Imagick php

Código PHP:
Ver original
  1. /* El píxel objetivo a pintar */
  2. $x = 1;
  3. $y = 1;
  4.  
  5. /* Obtener el color con el que vamos a pintar */
  6. $objetivo = $combinado->getImagePixelColor($x, $y);
  7.  
  8. /* Pinta el píxel en la posición 1,1 negro y todos los píxeles
  9.    cercanos que coincidan con el color objetivo */
  10. $combinado->floodfillPaintImage("black", 1, $objetivo, $x, $y, false);

http://php.net/manual/es/imagick.flo...paintimage.php
__________________
█ WebHosting / Reseller a bajo costo | Uptime Garantizado | Soporte en Español e Ingles
¿Te sirvió la respuesta? Deja un +1 (Triangulo negro al lado derecho)