Ignore:
Timestamp:
Oct 29, 2008, 6:09:05 PM (12 years ago)
Author:
nico
Message:
  • Add indexed colors image support for dither with gd resources
File:
1 edited

Legend:

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

    r3135 r3138  
    11#!/usr/bin/php5
    22<?php
    3 
    43$img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png");
     4//$img = imagecreatefromgif(dirname(__FILE__)."/logo-caca-idx.gif");
    55if (!$img)
    66        die("Can not open image.\n");
     
    1515        die("Can not create display.\n");
    1616
     17//caca_set_dither_palette_gd($dither, $img);
    1718caca_dither_bitmap_gd($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img);
    1819caca_refresh_display($display);
Note: See TracChangeset for help on using the changeset viewer.