Class: Yuki::GifReader

Inherits:
Object show all
Defined in:
LiteRGSS.rb.yard.rb,
docs/0_Dependencies.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

Instance Attribute Details

#frameInteger

Return the frame index of the Gif image

Returns:

  • (Integer)

    Return the frame index of the Gif image



1245
1246
1247
# File 'LiteRGSS.rb.yard.rb', line 1245

def frame
  @frame
end

#frame_countInteger (readonly)

Return the number of frame in the Gif image

Returns:

  • (Integer)

    Return the number of frame in the Gif image



1247
1248
1249
# File 'LiteRGSS.rb.yard.rb', line 1247

def frame_count
  @frame_count
end

#heightInteger

Return the height of the Gif image

Returns:

  • (Integer)

    Return the height of the Gif image



1243
1244
1245
# File 'LiteRGSS.rb.yard.rb', line 1243

def height
  @height
end

#widthInteger

Return the width of the Gif image

Returns:

  • (Integer)

    Return the width of the Gif image



1241
1242
1243
# File 'LiteRGSS.rb.yard.rb', line 1241

def width
  @width
end

Class Method Details

.create(filename, cache_name, hue = 0) ⇒ GifReader?

Create a new GifReader from archives

Parameters:

  • filename (String)

    name of the gif file, including the .gif extension

  • cache_name (Symbol)

    name of the cache where to load the gif file

  • hue (Integer) (defaults to: 0)

    0 = normal, 1 = shiny for Pokemon battlers

Returns:



580
581
# File 'docs/0_Dependencies.rb', line 580

def create(filename, cache_name, hue = 0)
end

.delta_counter=(value)

Set the delta counter used to count frames

Parameters:

  • value (Numeric)

    the number of miliseconds per frame



1268
1269
1270
# File 'LiteRGSS.rb.yard.rb', line 1268

def self.delta_counter=(value)

end

.exist?(filename, cache_name, hue = 0) ⇒ Boolean

Check if a Gif Exists

Parameters:

  • filename (String)

    name of the gif file, including the .gif extension

  • cache_name (Symbol)

    name of the cache where to load the gif file

  • hue (Integer) (defaults to: 0)

    0 = normal, 1 = shiny for Pokemon battlers

Returns:

  • (Boolean)


587
588
# File 'docs/0_Dependencies.rb', line 587

def exist?(filename, cache_name, hue = 0)
end

.new(filenameordata, from_memory = false)

Create a new GifReader

Parameters:

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


1251
1252
1253
# File 'LiteRGSS.rb.yard.rb', line 1251

def self.new(filenameordata, from_memory = false)

end

Instance Method Details

#draw(bitmap) ⇒ self

Draw the current frame in a bitmap

Parameters:

Returns:

  • (self)


1263
1264
1265
# File 'LiteRGSS.rb.yard.rb', line 1263

def draw(bitmap)

end

#old_update



590
# File 'docs/0_Dependencies.rb', line 590

alias old_update update

#update(bitmap) ⇒ self

Update the gif animation

Parameters:

Returns:

  • (self)


594
595
# File 'docs/0_Dependencies.rb', line 594

def update(bitmap)
end