source: libpipi/trunk/pipi-php/examples/example1.php @ 3170

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: 236 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_box_blur($img, 30);
7$img = pipi_contrast($img, 0.98);
8$img = pipi_tile($img, 256, 256);
9pipi_save($img, "out.png");
10
11?>
Note: See TracBrowser for help on using the repository browser.