Class: Painter::ImageStruct

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/painter/image_struct.rb

Constant Summary collapse

MAXCOLORS =
256

Instance Method Summary collapse

Instance Method Details

#xObject



28
29
30
# File 'lib/painter/image_struct.rb', line 28

def x
  self[:sx]
end

#yObject



31
32
33
# File 'lib/painter/image_struct.rb', line 31

def y
  self[:sy]
end