Class: GD2::AnimatedGif::Frame
- Inherits:
-
Struct
- Object
- Struct
- GD2::AnimatedGif::Frame
- Defined in:
- lib/gd2/animated_gif.rb
Instance Attribute Summary collapse
-
#ptr ⇒ Object
Returns the value of attribute ptr.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#ptr ⇒ Object
Returns the value of attribute ptr
6 7 8 |
# File 'lib/gd2/animated_gif.rb', line 6 def ptr @ptr end |
#size ⇒ Object
Returns the value of attribute size
6 7 8 |
# File 'lib/gd2/animated_gif.rb', line 6 def size @size end |
Instance Method Details
#read ⇒ Object
7 8 9 |
# File 'lib/gd2/animated_gif.rb', line 7 def read ptr.get_bytes(0, size.get_int(0)) end |