| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#include <stdio.h> |
| 24 |
#include "MagickCore/studio.h" |
| 25 |
#include "MagickWand/MagickWand.h" |
| 26 |
#include "MagickWand/operation.h" |
| 27 |
|
| 28 |
int main(int argc, char **argv) |
| 29 |
{ |
| 30 |
MagickCLI |
| 31 |
*cli_wand; |
| 32 |
|
| 33 |
MagickCoreGenesis(argv[0],MagickFalse); |
| 34 |
|
| 35 |
cli_wand = AcquireMagickCLI((ImageInfo *) NULL,(ExceptionInfo *) NULL); |
| 36 |
|
| 37 |
CLIOption (cli_wand, "-size", "100x100"); |
| 38 |
CLIOption (cli_wand, "-read", "xc:red"); |
| 39 |
CLIOption (cli_wand, "(", NULL); |
| 40 |
CLIOption (cli_wand, "-read", "rose:"); |
| 41 |
CLIOption (cli_wand, "-rotate", "-90", NULL); |
| 42 |
CLIOption (cli_wand, ")", NULL); |
| 43 |
CLIOption (cli_wand, "+append", NULL, NULL); |
| 44 |
CLIOption (cli_wand, "-write", "show:", NULL); |
| 45 |
|
| 46 |
|
| 47 |
if ( CLICatchException(cli_wand,MagickTrue) != MagickFalse ) |
| 48 |
fprintf(stderr, "Major Error Detected\n"); |
| 49 |
|
| 50 |
cli_wand = DestroyMagickCLI(cli_wand); |
| 51 |
|
| 52 |
MagickCoreTerminus(); |
| 53 |
} |