I've been trying to get a screenshot using the WIN: pseudo-format. How ever it seems that I am not going anywhere with this.
WIN RW Select image from or display image to your computer screen Only supported under Microsoft Windows.
Here is my test code:
/*
Screen Grabbing test
*/
#include <stdio.h>
#include <stdlib.h>
#include <wand/magick-wand.h>
int main( int argc, char ** argv)
{
MagickWand *myMagickWand;
MagickWandGenesis();
myMagickWand = NewMagickWand();
/* This format propably expects an argument? */
MagickReadImage( myMagickWand, "WIN:" );
MagickSetImageFormat( myMagickWand, "png" );
MagickWriteImage( myMagickWand, "test.png" );
myMagickWand = DestroyMagickWand( myMagickWand );
MagickWandTerminus();
return 0;
}
WIN: pseudo-format
WIN: pseudo-format
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org