Class: GD2::AnimatedGif::Frame

Inherits:
Struct
  • Object
show all
Defined in:
lib/gd2/animated_gif.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ptrObject

Returns the value of attribute ptr

Returns:

  • (Object)

    the current value of ptr



6
7
8
# File 'lib/gd2/animated_gif.rb', line 6

def ptr
  @ptr
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



6
7
8
# File 'lib/gd2/animated_gif.rb', line 6

def size
  @size
end

Instance Method Details

#readObject



7
8
9
# File 'lib/gd2/animated_gif.rb', line 7

def read
  ptr.get_bytes(0, size.get_int(0))
end