Page 1 of 1

SparseColor is not working

Posted: 2009-12-16T03:23:53-07:00
by venkat
Hi all,

I have some problem with SparseColor().
I had download latest version and i took libraries and includes and builded project in VC++ to get .NET dll.
All methods are working fine and i am able to access all methods, but SparseColor is giving exception when i called.

"Sparse color image, given a set of coordinates, interpolates the colors found at those coordinates, across the whole image, using various methods."
Syntax:
SparseColor (ChannelType channel_, SparseColorMethod method_, unsigned long number_arguments, double *arguments_ );

Example:
ImageMagickNET.Image imageMagick = new ImageMagickNET.Image( "C:\\img1.jpg" );
double dArguments=10;
double *pArguments=&dArguments;
imageMagick.SparseColor(ChannelType.BlueChannel,SparseColorMethod.BarycentricColorInterpolate,(uint)1, pArguments );

The above example is giving exception like "External component has thrown an exception."

Can you tell me how to solve this problem.

please help me.

Thanks
venkat