Class: LiteRGSS::Bitmap

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

Overview

Class that stores an image loaded from file or memory

Instance Method Summary collapse

Constructor Details

#initialize(filename_or_memory, from_memory = false) ⇒ Bitmap

Create a new bitmap

Parameters:

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

Instance Method Details

#disposeself

Free the bitmap

Returns:

  • (self)

#disposed?Boolean

Indicate if the bitmap is freed or not

Returns:

  • (Boolean)

#heightInteger

Returns the heigth of the Bitmap

Returns:

  • (Integer)

#rectRect

Returns the surface of the Bitmap

Returns:

#widthInteger

Returns the width of the Bitmap

Returns:

  • (Integer)