This works with V6.9.7-10: MagickSetSize(m_wand,20,640); MagickReadImage(m_wand,"gradient:white-black"); MagickRotateImage(m_wand, PW1,90); // In V7 the 5th argument is a DitherMethod rather than a boolean - try NoDitherMethod MagickQuantizeImage(m_wand,2,GRAYColorspace,0,MagickTrue,Magick...
I forgot to note that the code I wrote used IM version 6.9.7. It appears that the code you are using is IM v7 - I need to get around to upgrading! In V7 the signature is: KernelInfo *AcquireKernelInfo(const char *kernel_string, ExceptionInfo *exception) but in V6 it is: KernelInfo *AcquireKernelInfo...
If you output the command line result to a PNG, it has a transparent background. Even so, it seems to be a very complicated command which seems to just invert the black and white in cnbc_i.jpg, make the black transparent and replace the white area with the pattern in cnbc_p.jpg. Is it supposed to do...
Try MagickTextureImage: % MagickTextureImage() repeatedly tiles the texture image across and down the % image canvas. % % The format of the MagickTextureImage method is: % % MagickWand *MagickTextureImage(MagickWand *wand, % const MagickWand *texture_wand) % % A description of each parameter follows...
Hmmmm. It just occurred to me to wonder if it is PSP that isn't displaying it properly and lo and behold, MagicViewer displays it with transparency but PSP Pro X9 doesn't. Weird. Apparently it's nothing to do with the PNG coder in IM. It's the PNG decoder in PSP! Thanks for making me look outside th...
I've been trying to get my MagickWand Examples in C up to date. Most of the examples work fine (in V6.9.7) but a couple related to transparency give oddball results. Fortunately, I can demonstrate the problem with the command line. This command should change all the white pixels to be transparent, i...
I'm using IM 6.9.7-10 on Windows 10 Pro x64 and ran into a problem with MagickEvaluateImages in which it was crashing with a simple test program. I eventually tracked it down to the fact that I had forgotten to call MagickResetIterator after reading in the images and before calling MagickEvaluateIma...
Hi, That's my stuff. As it says, my ISP has closed down the (free) webspace part of their service. I have saved all the files but do not have an alternate website to display the MagickWand examples. For now, I have archived the whole directory into a zip file which can be downloaded from [https://ww...
As of version 6.9.3-7 of ImageMagick, the MeanShiftImage function has not been implemented within MagickWand.
But even if it had, you would still have a problem because it would not have been implemented in FreePascal which appears to use a very old version of IM from 2005.
I've had a quick look at the source code for the ImageMagick package in FPC 3.0.0. The list of metrics in compare.inc are precisely those that you obtained from the API list. The copyright at the top of that file is: Copyright 1999-2005 ImageMagick Studio LLC. It's likely that in 2005 those were the...