Class: Browser::Canvas::Style::Image
- Inherits:
-
Browser::Canvas::StyleObject
- Object
- Browser::Canvas::StyleObject
- Browser::Canvas::Style::Image
- Defined in:
- opal/browser/canvas/style.rb
Instance Attribute Summary collapse
-
#smooth ⇒ Object
(also: #smooth?)
readonly
Returns the value of attribute smooth.
Attributes inherited from Browser::Canvas::StyleObject
Instance Method Summary collapse
Methods inherited from Browser::Canvas::StyleObject
Constructor Details
This class inherits a constructor from Browser::Canvas::StyleObject
Instance Attribute Details
#smooth ⇒ Object (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 |