Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Getting pixel colours with Image::Magick

by vr (Curate)
on Aug 11, 2019 at 10:45 UTC ( [id://11104280]=note: print w/replies, xml ) Need Help??


in reply to Getting pixel colours with Image::Magick

You could add 'normalize => 0' arguments to the GetPixel call, and then get integers, most probably in 0 .. 0xFFFF range, because QuantumDepth of modern ImageMagick is 16 bit per channel by default. Even in the past, when it was 8 bit, you'd get integers 0 .. 0xFF, and certainly not strings in hexadecimal representation -- so basic arithmetic/formatting operation would be required for your purposes anyway.

  • Comment on Re: Getting pixel colours with Image::Magick

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11104280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found