Class: Zint::BitmapPixel

Inherits:
Struct
  • Object
show all
Defined in:
lib/zint/bitmap_pixel.rb

Overview

A class to represents a pixel from the bitmap

Instance Attribute Summary collapse

Instance Attribute Details

#colourObject

Returns the value of attribute colour

Returns:

  • (Object)

    the current value of colour



3
4
5
# File 'lib/zint/bitmap_pixel.rb', line 3

def colour
  @colour
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



3
4
5
# File 'lib/zint/bitmap_pixel.rb', line 3

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



3
4
5
# File 'lib/zint/bitmap_pixel.rb', line 3

def y
  @y
end