CrImage::Operation::ChannelSwap
Swaps channels of ChannelType supported by an image
Taking sample image:
image.channel_swap(:green, :red) # Crystal autocasting of symbols to Pluto::ChannelType enum is magic
Instance methods
channel_swap(a : ChannelType, b : ChannelType) : self
Sourcechannel_swap!(a : ChannelType, b : ChannelType) : self
Source