How can i load a image via streaming?

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
kustom

How can i load a image via streaming?

Post by kustom »

Hi to all,

im encapsuling MagickWand to use in my own system, but i have a big problem...

when i try to do lot of operations over the same image i get forced to load and save the file images contantly.... :(

for example, i use this function:

void ImageResize( const char *pszFileNameInput, int iWidht, int iHeight, const char *pszFileNameOutput )
{
MagickWand *pWand = NewMagickWand();
MagickReadImage( pWand, pszFileNameInput );
MagickResizeImage( pWand, iWidht, iHeight, BoxFilter, 1.0F );
MagickWriteImage( pWand, pszFileNameOutput );
pWand = DestroyMagickWand( pWand );
}


i would need something like....


void ImageResize( BYTE *pFileInput, int iWidht, int iHeight, BYTE *pFileOutput)
{
...
}


thanks in advance

kustom
Post Reply