lib/rmagick_internal.rb
# Set alpha (make transparent) in image according to the specified
# colorization rule
Set alpha (make transparent) in image according to the specified
colorization rule
Set alpha ( make transparent ) in image according to the specified colorization rule
def alpha(x, y, method)
      Kernel.raise ArgumentError, 'Unknown paint method' unless PAINT_METHOD_NAMES.key?(method.to_i)
      name = Gem::Version.new(Magick::IMAGEMAGICK_VERSION) > Gem::Version.new('7.0.0') ? 'alpha ' : 'matte '
      primitive name + sprintf('%g,%g, %s', x, y, PAINT_METHOD_NAMES[method.to_i])
    end
def alpha ( x , y , method ) Kernel . raise ArgumentError , 'Unknown paint method' unless PAINT_METHOD_NAMES . key? ( method . to_i ) name = Gem :: Version . new ( Magick :: IMAGEMAGICK_VERSION ) > Gem :: Version . new ( '7.0.0' ) ? 'alpha ' : 'matte ' primitive name + sprintf ( '%g,%g, %s' , x , y , PAINT_METHOD_NAMES [ method . to_i ] ) end
Set alpha (make transparent) in image according to the specified
colorization rule
Set alpha ( make transparent ) in image according to the specified colorization rule
x
<not_specific>
y
<not_specific>
method
<not_specific>