Class: Skrift::Color::Image

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



7
8
9
# File 'lib/skrift/color/renderer.rb', line 7

def height
  @height
end

#pixelsObject

Returns the value of attribute pixels

Returns:

  • (Object)

    the current value of pixels



7
8
9
# File 'lib/skrift/color/renderer.rb', line 7

def pixels
  @pixels
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



7
8
9
# File 'lib/skrift/color/renderer.rb', line 7

def width
  @width
end