WIN: pseudo-format

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

WIN: pseudo-format

Post by mkoppanen » 2007-08-24T13:50:27-07:00

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;
}
Mikko Koppanen
My blog: http://valokuva.org

mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: WIN: pseudo-format

Post by mkoppanen » 2007-09-07T09:20:22-07:00

any ideas for this one?
Mikko Koppanen
My blog: http://valokuva.org

Post Reply