PHP
Projects, examples and tutorials.
Projects, examples and tutorials.
I've created a very simple script in php using GD Library to analyze an image and its colors distribution. You can reimplement this algorithm (very simple) in another language and track your graph.
You can see an example at this page: http://www.st4ck.com/examples/php/rgb.php
After 'Introduction to GD Library', We can start to know functions to draw line, rectangles, circles, arcs and strings.
To draw rectangle there are 2 functions:
- imagerectangle() creates a rectangle starting at the specified coordinates.
- imagefilledrectangle() creates a rectangle filled with color in the given image.
First example:
|
Code:
|
Result: |