rmagick / rmagick

Ruby bindings for ImageMagick
https://rmagick.github.io/
MIT License
696 stars 140 forks source link

Need documentation for Hex Code #262

Closed melaniegershman closed 1 month ago

melaniegershman commented 7 years ago

I'm using #to_color to get a hex code; how can I exclude compliance, matte, depth from the output? @snuggs @janz93

Watson1978 commented 1 month ago

You can see the document in Pixel#to_color.

Unfortunately, you will need to set all arguments even if you only want to set hex=true.

You can create utility methods or monkey patching.