Method: Magick::Image#matte_point

Defined in:
lib/RMagick.rb

#matte_point(x, y) ⇒ Object

Make the pixel at (x,y) transparent.


940
941
942
943
944
945
946
947
# File 'lib/RMagick.rb', line 940

def matte_point(x, y)
    f = copy
    f.opacity = OpaqueOpacity unless f.matte
    pixel = f.pixel_color(x,y)
    pixel.opacity = TransparentOpacity
    f.pixel_color(x, y, pixel)
    return f
end