Page 1 of 1

WIN: pseudo-format

Posted: 2007-08-24T13:50:27-07:00
by mkoppanen
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;
}

Re: WIN: pseudo-format

Posted: 2007-09-07T09:20:22-07:00
by mkoppanen
any ideas for this one?