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.



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

def smooth
  @smooth
end

Instance Method Details

#no_smooth!Object



63
64
65
66
# File 'opal/browser/canvas/style.rb', line 63

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

#smooth!Object



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

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