Page 1 of 1

Using MagickLevelImage to apply levels in IOS

Posted: 2016-07-04T08:20:14-07:00
by amit1411
Hi,
I am trying to apply levels on an Image using MagickLevelImage method in IOS. For this I have to provide the 0 as white point and maximum quantum range as black point. I am not sure how can I get the maximum quantum range value for the given wand? Can someone please help me with this code.
The php code I am trying to convert is :
$quantumRange= $image->getQuantumRange();
$image->levelImage(0,.05,$quantumRange ['quantumRangeLong']);

Thanks,
Amit

Re: Using MagickLevelImage to apply levels in IOS

Posted: 2016-07-04T08:34:14-07:00
by snibgo
amit1411 wrote:I am not sure how can I get the maximum quantum range value for the given wand?
If I understand your question, for a Magick Wand program, the answer is to use the constant QuantumRange. This will have the value 255 or 65535 or 4294967295 or about 1.8e+19.