Class: Yuki::GifReader

Inherits:
Object
  • Object
show all
Defined in:
LiteRGSS.rb

Overview

Class that helps to read Gif

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filenameordata, from_memory = false) ⇒ GifReader

Create a new GifReader

Parameters:

  • filenameordata (String)
  • from_memory (Boolean) (defaults to: false)

Instance Attribute Details

#frameInteger

Return the frame index of the Gif image

Returns:

  • (Integer)

#frame_countInteger (readonly)

Return the number of frame in the Gif image

Returns:

  • (Integer)

#heightInteger (readonly)

Return the height of the Gif image

Returns:

  • (Integer)

#widthInteger (readonly)

Return the width of the Gif image

Returns:

  • (Integer)

Class Method Details

.delta_counter=(value)

Set the delta counter used to count frames

Parameters:

  • value (Numeric)

    the number of miliseconds per frame

Instance Method Details

#draw(bitmap) ⇒ self

Draw the current frame in a bitmap

Parameters:

Returns:

  • (self)

#update(bitmap) ⇒ self

Update the gif animation

Parameters:

Returns:

  • (self)