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.
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 |