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
Using MagickLevelImage to apply levels in IOS
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Using MagickLevelImage to apply levels in IOS
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.amit1411 wrote:I am not sure how can I get the maximum quantum range value for the given wand?
snibgo's IM pages: im.snibgo.com