Last change
on this file since 3170 was
3170,
checked in by nico, 12 years ago
|
- Centralize pipi's errors managment in macro RETURN_SUCCESS
- Change php headers in samples programs
- Add binding for pipi_draw_line
- Check args in pipi_new_histogram and pipi_get_version
|
File size:
353 bytes
|
Line | |
---|
1 | #!/usr/bin/php5 |
---|
2 | <?php |
---|
3 | |
---|
4 | $img = pipi_load_stock("random:128x128"); |
---|
5 | $img = pipi_gaussian_blur($img, 10); |
---|
6 | $img = pipi_contrast($img, 0.98); |
---|
7 | |
---|
8 | $histogram = pipi_new_histogram(); |
---|
9 | $histogram_img = pipi_new(320, 200); |
---|
10 | pipi_get_image_histogram($img, $histogram, 1); |
---|
11 | pipi_render_histogram($img_histogram, $histogram, 1); |
---|
12 | |
---|
13 | pipi_save($histogram_img, "out.png"); |
---|
14 | |
---|
15 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.