Image.Channel method

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
LiloLilo

Image.Channel method

Post by LiloLilo »

Hi, I found out that Image.channel(...) (Magick++) can be used to extract a single image channel. The class description I found is: "Extract channel from image. Use this option to extract a particular channel from the image"

What does it mean as channel function returns void? I'd like to pass a single channel to a function, it can be done?

Thank you all.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Image.Channel method

Post by anthony »

That probably means the channel did not exist. This can only happen for black and matte/alpha channels.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply