SparseColor is not working
Posted: 2009-12-16T03:16:07-07:00
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.
Even it is not working in command prompt also
My code::
C:\Program Files\ImageMagick-6.5.8-Q16> convert -size 100x100 xc: -sparse-color Bilinear '30,10 red 10,80 blue 70,60 lime 80,20 yellow' -fill white -stroke black -draw 'circle 30,10 30,12 circle 10,80 10,82' -draw 'circle 70,60 70,62 circle 80,20 80,22' C:\sam\sas.jpg
I am getting Errors like::
convert: invalid argument for option `sparse-color': Invalid number of Arguments
@ mogrify.c/SparseColorOption/456.
convert: unable to open image `red': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `10,80': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `blue': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `70,60': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `lime': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `80,20': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `yellow'': No such file or directory @ blob.c/OpenBlob/2480.
convert: Non-conforming drawing primitive definition `circle' @ draw.c/DrawImage/3140.
convert: unable to open image `30,10': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `30,12': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `circle': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `10,80': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `10,82'': No such file or directory @ blob.c/OpenBlob/2480.
convert: Non-conforming drawing primitive definition `circle' @ draw.c/DrawImage/3140.
convert: unable to open image `70,60': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `70,62': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `circle': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `80,20': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `80,22'': No such file or directory @ blob.c/OpenBlob/2480.
convert: Non-conforming drawing primitive definition `circle' @ draw.c/DrawImage/3140.
please help me.
Thanks
venkat
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.
Even it is not working in command prompt also
My code::
C:\Program Files\ImageMagick-6.5.8-Q16> convert -size 100x100 xc: -sparse-color Bilinear '30,10 red 10,80 blue 70,60 lime 80,20 yellow' -fill white -stroke black -draw 'circle 30,10 30,12 circle 10,80 10,82' -draw 'circle 70,60 70,62 circle 80,20 80,22' C:\sam\sas.jpg
I am getting Errors like::
convert: invalid argument for option `sparse-color': Invalid number of Arguments
@ mogrify.c/SparseColorOption/456.
convert: unable to open image `red': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `10,80': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `blue': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `70,60': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `lime': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `80,20': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `yellow'': No such file or directory @ blob.c/OpenBlob/2480.
convert: Non-conforming drawing primitive definition `circle' @ draw.c/DrawImage/3140.
convert: unable to open image `30,10': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `30,12': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `circle': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `10,80': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `10,82'': No such file or directory @ blob.c/OpenBlob/2480.
convert: Non-conforming drawing primitive definition `circle' @ draw.c/DrawImage/3140.
convert: unable to open image `70,60': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `70,62': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `circle': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `80,20': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `80,22'': No such file or directory @ blob.c/OpenBlob/2480.
convert: Non-conforming drawing primitive definition `circle' @ draw.c/DrawImage/3140.
please help me.
Thanks
venkat