Changeset 3217 for libcaca/trunk/caca-php/caca.php
- Timestamp:
- Nov 2, 2008, 9:05:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/caca.php
r3216 r3217 207 207 208 208 function setPalette($colors) { 209 caca_set_dither_palette($this->dt, $colors);209 return caca_set_dither_palette($this->dt, $colors); 210 210 } 211 211 212 212 function setBrightness($value) { 213 caca_set_dither_brightness($this->dt, $value);213 return caca_set_dither_brightness($this->dt, $value); 214 214 } 215 215 216 216 function getBrightness() { 217 caca_get_dither_brightness($this->dt);217 return caca_get_dither_brightness($this->dt); 218 218 } 219 219 220 220 function setGamme($value) { 221 caca_set_dither_gamma($this->dt, $value);221 return caca_set_dither_gamma($this->dt, $value); 222 222 } 223 223 224 224 function getGamma() { 225 caca_get_dither_gamma($this->dt);225 return caca_get_dither_gamma($this->dt); 226 226 } 227 227 228 228 function setContrast($value) { 229 caca_set_dither_contrast($this->dt, $value);229 return caca_set_dither_contrast($this->dt, $value); 230 230 } 231 231 232 232 function getContrast() { 233 caca_get_dither_contrast($this->dt);233 return caca_get_dither_contrast($this->dt); 234 234 } 235 235 236 236 function setAntialias($value) { 237 caca_set_dither_antialias($this->dt, $value);237 return caca_set_dither_antialias($this->dt, $value); 238 238 } 239 239 240 240 function getAntialiasList() { 241 caca_get_dither_antialias_list($this->dt);241 return caca_get_dither_antialias_list($this->dt); 242 242 } 243 243 244 244 function getAntialias() { 245 caca_get_dither_antialias($this->dt);245 return caca_get_dither_antialias($this->dt); 246 246 } 247 247 248 248 function setColor($color) { 249 caca_set_dither_color($this->dt, $color);249 return caca_set_dither_color($this->dt, $color); 250 250 } 251 251 252 252 function getColorList() { 253 caca_get_dither_color_list($this->dt);253 return caca_get_dither_color_list($this->dt); 254 254 } 255 255 256 256 function getColor() { 257 caca_get_dither_color($this->dt);257 return caca_get_dither_color($this->dt); 258 258 } 259 259 260 260 function setCharset($value) { 261 caca_set_dither_charset($this->dt, $value);261 return caca_set_dither_charset($this->dt, $value); 262 262 } 263 263 264 264 function getCharsetList() { 265 caca_get_dither_charset_list($this->dt);265 return caca_get_dither_charset_list($this->dt); 266 266 } 267 267 268 268 function getCharset() { 269 caca_get_dither_charset($this->dt);269 return caca_get_dither_charset($this->dt); 270 270 } 271 271 272 272 function setAlgorithm($name) { 273 caca_set_dither_algorithm($this->dt, $name);273 return caca_set_dither_algorithm($this->dt, $name); 274 274 } 275 275 276 276 function getAlgorithmList() { 277 caca_get_dither_algorithm_list($this->dt);277 return caca_get_dither_algorithm_list($this->dt); 278 278 } 279 279 280 280 function getAlgorithm() { 281 caca_get_dither_algorithm($this->dt);281 return caca_get_dither_algorithm($this->dt); 282 282 } 283 283 284 284 function bitmap($canvas, $x, $y, $width, $height, $load_palette = true) { 285 caca_dither_bitmap($canvas, $x, $y, $width, $height, $this->dt, $this->img, $load_palette);285 return caca_dither_bitmap($canvas, $x, $y, $width, $height, $this->dt, $this->img, $load_palette); 286 286 } 287 287
Note: See TracChangeset
for help on using the changeset viewer.