module CrImage::Operation::ChannelSwap
Overview
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
Direct including types
Defined in:
cr-image/operation/channel_swap.crInstance Method Summary
- #channel_swap(a : ChannelType, b : ChannelType) : self
- #channel_swap!(a : ChannelType, b : ChannelType) : self