Ignore:
Timestamp:
Oct 30, 2008, 12:39:24 PM (11 years ago)
Author:
nico
Message:
  • Remove "_gd" suffix from dithering functions
  • caca_dithering_bitmap can load palette from gd resource
  • Remove caca_set_dither_palette_gd function
  • Adapt sample program "dithering.php"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/dithering.php

    r3138 r3148  
    66        die("Can not open image.\n");
    77
    8 $dither = caca_create_dither_gd($img);
     8$dither = caca_create_dither($img);
    99if (!$dither)
    1010        die("Can not create dither. Maybe this image is not truecolor.\n");
     
    1515        die("Can not create display.\n");
    1616
    17 //caca_set_dither_palette_gd($dither, $img);
    18 caca_dither_bitmap_gd($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img);
     17caca_dither_bitmap($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img);
    1918caca_refresh_display($display);
    2019
Note: See TracChangeset for help on using the changeset viewer.