Class: Browser::Canvas::Style::Image

Inherits:
Browser::Canvas::StyleObject show all
Defined in:
opal/browser/canvas/style.rb

Instance Attribute Summary collapse

Attributes inherited from Browser::Canvas::StyleObject

#context

Instance Method Summary collapse

Methods inherited from Browser::Canvas::StyleObject

#initialize

Constructor Details

This class inherits a constructor from Browser::Canvas::StyleObject

Instance Attribute Details

#smoothObject (readonly) Also known as: smooth?

Returns the value of attribute smooth.



53
54
55
# File 'opal/browser/canvas/style.rb', line 53

def smooth
  @smooth
end

Instance Method Details

#no_smooth!Object



61
62
63
# File 'opal/browser/canvas/style.rb', line 61

def no_smooth!
  `#@native.mozImageSmoothingEnabled = #{@smooth = false}`
end

#smooth!Object



57
58
59
# File 'opal/browser/canvas/style.rb', line 57

def smooth!
  `#@native.mozImageSmoothingEnabled = #{@smooth = true}`
end