| @@ -206,83 +206,83 @@ class Dither { | |||||
| private $img; | private $img; | ||||
| function setPalette($colors) { | function setPalette($colors) { | ||||
| caca_set_dither_palette($this->dt, $colors); | |||||
| return caca_set_dither_palette($this->dt, $colors); | |||||
| } | } | ||||
| function setBrightness($value) { | function setBrightness($value) { | ||||
| caca_set_dither_brightness($this->dt, $value); | |||||
| return caca_set_dither_brightness($this->dt, $value); | |||||
| } | } | ||||
| function getBrightness() { | function getBrightness() { | ||||
| caca_get_dither_brightness($this->dt); | |||||
| return caca_get_dither_brightness($this->dt); | |||||
| } | } | ||||
| function setGamme($value) { | function setGamme($value) { | ||||
| caca_set_dither_gamma($this->dt, $value); | |||||
| return caca_set_dither_gamma($this->dt, $value); | |||||
| } | } | ||||
| function getGamma() { | function getGamma() { | ||||
| caca_get_dither_gamma($this->dt); | |||||
| return caca_get_dither_gamma($this->dt); | |||||
| } | } | ||||
| function setContrast($value) { | function setContrast($value) { | ||||
| caca_set_dither_contrast($this->dt, $value); | |||||
| return caca_set_dither_contrast($this->dt, $value); | |||||
| } | } | ||||
| function getContrast() { | function getContrast() { | ||||
| caca_get_dither_contrast($this->dt); | |||||
| return caca_get_dither_contrast($this->dt); | |||||
| } | } | ||||
| function setAntialias($value) { | function setAntialias($value) { | ||||
| caca_set_dither_antialias($this->dt, $value); | |||||
| return caca_set_dither_antialias($this->dt, $value); | |||||
| } | } | ||||
| function getAntialiasList() { | function getAntialiasList() { | ||||
| caca_get_dither_antialias_list($this->dt); | |||||
| return caca_get_dither_antialias_list($this->dt); | |||||
| } | } | ||||
| function getAntialias() { | function getAntialias() { | ||||
| caca_get_dither_antialias($this->dt); | |||||
| return caca_get_dither_antialias($this->dt); | |||||
| } | } | ||||
| function setColor($color) { | function setColor($color) { | ||||
| caca_set_dither_color($this->dt, $color); | |||||
| return caca_set_dither_color($this->dt, $color); | |||||
| } | } | ||||
| function getColorList() { | function getColorList() { | ||||
| caca_get_dither_color_list($this->dt); | |||||
| return caca_get_dither_color_list($this->dt); | |||||
| } | } | ||||
| function getColor() { | function getColor() { | ||||
| caca_get_dither_color($this->dt); | |||||
| return caca_get_dither_color($this->dt); | |||||
| } | } | ||||
| function setCharset($value) { | function setCharset($value) { | ||||
| caca_set_dither_charset($this->dt, $value); | |||||
| return caca_set_dither_charset($this->dt, $value); | |||||
| } | } | ||||
| function getCharsetList() { | function getCharsetList() { | ||||
| caca_get_dither_charset_list($this->dt); | |||||
| return caca_get_dither_charset_list($this->dt); | |||||
| } | } | ||||
| function getCharset() { | function getCharset() { | ||||
| caca_get_dither_charset($this->dt); | |||||
| return caca_get_dither_charset($this->dt); | |||||
| } | } | ||||
| function setAlgorithm($name) { | function setAlgorithm($name) { | ||||
| caca_set_dither_algorithm($this->dt, $name); | |||||
| return caca_set_dither_algorithm($this->dt, $name); | |||||
| } | } | ||||
| function getAlgorithmList() { | function getAlgorithmList() { | ||||
| caca_get_dither_algorithm_list($this->dt); | |||||
| return caca_get_dither_algorithm_list($this->dt); | |||||
| } | } | ||||
| function getAlgorithm() { | function getAlgorithm() { | ||||
| caca_get_dither_algorithm($this->dt); | |||||
| return caca_get_dither_algorithm($this->dt); | |||||
| } | } | ||||
| function bitmap($canvas, $x, $y, $width, $height, $load_palette = true) { | function bitmap($canvas, $x, $y, $width, $height, $load_palette = true) { | ||||
| caca_dither_bitmap($canvas, $x, $y, $width, $height, $this->dt, $this->img, $load_palette); | |||||
| return caca_dither_bitmap($canvas, $x, $y, $width, $height, $this->dt, $this->img, $load_palette); | |||||
| } | } | ||||
| function __construct($image) { | function __construct($image) { | ||||