diff options
Diffstat (limited to 'ws2a/gencaptcha.c')
| -rw-r--r-- | ws2a/gencaptcha.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ws2a/gencaptcha.c b/ws2a/gencaptcha.c new file mode 100644 index 0000000..74a7e96 --- /dev/null +++ b/ws2a/gencaptcha.c @@ -0,0 +1,24 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +//convert label.png -virtual-pixel White -distort Arc 60 arctest.png + +//convert -background gray -fill cyan -pointsize 72 label:Alex label.png + +//convert label.png -virtual-pixel white -distort Barrel "0.2 0.0 0.0 1.0" barrel.png + +int main(){ + FILE* imgfile; + imgfile = fopen("../ws2a/testcaptcha.png","r"); + if(imgfile == NULL){ + return 1; + } + while(!feof(imgfile)){ + char c = fgetc(imgfile); + if(feof(imgfile)){ + return 0; + } + putchar(c); + } +} |
