Home Tutorial Php Phpgd PHP GD Hue an Image

 
 

PHP GD Hue an Image
Posted on: November 10, 2009 at 12:00 AM
This example shows how to hue an image in php gd.

<?php

$im = imagecreatefromJPEG('images.jpg');

echo 'Hue white& black:' . imagecolorclosesthwb($im, 116, 115, 152);

imagedestroy($im);

?>

After running the program you will get the following output

OUTPUT:Hue white& black:7631768

Related Tags for PHP GD Hue an Image:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.