Changeset 3138 for libcaca/trunk/caca-php/examples/dithering.php
- Timestamp:
- Oct 29, 2008, 6:09:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/dithering.php
r3135 r3138 1 1 #!/usr/bin/php5 2 2 <?php 3 4 3 $img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png"); 4 //$img = imagecreatefromgif(dirname(__FILE__)."/logo-caca-idx.gif"); 5 5 if (!$img) 6 6 die("Can not open image.\n"); … … 15 15 die("Can not create display.\n"); 16 16 17 //caca_set_dither_palette_gd($dither, $img); 17 18 caca_dither_bitmap_gd($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img); 18 19 caca_refresh_display($display);
Note: See TracChangeset
for help on using the changeset viewer.