Class: Skrift::Color::Image
- Inherits:
-
Struct
- Object
- Struct
- Skrift::Color::Image
- Defined in:
- lib/skrift/color/renderer.rb
Overview
An RGBA colour glyph. pixels is a row-major array of packed 0xRRGGBBAA integers (straight, non-premultiplied alpha).
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#pixels ⇒ Object
Returns the value of attribute pixels.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height
7 8 9 |
# File 'lib/skrift/color/renderer.rb', line 7 def height @height end |
#pixels ⇒ Object
Returns the value of attribute pixels
7 8 9 |
# File 'lib/skrift/color/renderer.rb', line 7 def pixels @pixels end |
#width ⇒ Object
Returns the value of attribute width
7 8 9 |
# File 'lib/skrift/color/renderer.rb', line 7 def width @width end |