diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-06-10 07:06:04 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-06-10 07:06:04 +0200 |
commit | 1849a9b3c4cab7610e0880d233bdc22143a60839 (patch) | |
tree | f2c24e9e5874b914beb16a47453f8fe187cb614c /px.c |
repo reorg
Diffstat (limited to 'px.c')
-rw-r--r-- | px.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <wand/wand_api.h> + +int main(int argc, char *argv[]) +{ + PixelWand *pix; + char *str; + char *col[] = {"rgb(0,0,0)", "rgb(80,80,80)", "rgb(255,255,255)", "rgb(999,999,999)", NULL}; + int i; + + pix = NewPixelWand(); + for (i=0 ; col[i] ; i++) + { + PixelSetColor(pix, col[i]); + str = PixelGetColorAsString(pix); + printf("%s = rgb(%s)\n", col[i], str); + } + DestroyPixelWand(pix); + return 0; +} |