diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-12-28 17:33:09 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-12-28 17:33:09 +0100 |
commit | 99990d767acbaaeef73c9ee424a773262d13e05f (patch) | |
tree | cdcf0e6fecb510322b5d5fc2865f61215354b4f9 /px.c | |
parent | 85a61a85a260f34a52440e9f773cddc0deb62589 (diff) |
php-pecl-gmagick 1.1.2RC1
Diffstat (limited to 'px.c')
-rw-r--r-- | px.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -1,20 +0,0 @@ -#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; -} |