class Morandi::Gamma
Attributes
gamma[R]
Public Class Methods
new(gamma=1.0)
click to toggle source
Calls superclass method
Morandi::ImageOp::new
# File lib/morandi/image-ops.rb, line 251 def initialize(gamma=1.0) super() @gamma = gamma end
Public Instance Methods
call(image, pixbuf)
click to toggle source
# File lib/morandi/image-ops.rb, line 255 def call(image, pixbuf) if @gamma == 1.0 pixbuf else PixbufUtils.gamma(pixbuf, @gamma) end end
priority()
click to toggle source
# File lib/morandi/image-ops.rb, line 262 def priority 90 end