Class: Yeah::Image

Inherits:
Asset
  • Object
show all
Defined in:
lib/yeah/_platform/image.rb

Overview

Note:

Provided by a Platform.

An Image is an asset that a Display can draw.

See Also:

  • Display#image

Instance Attribute Summary collapse

Attributes inherited from Asset

#path

Instance Method Summary collapse

Methods inherited from Asset

[], #initialize

Constructor Details

This class inherits a constructor from Yeah::Asset

Instance Attribute Details

#heightInteger (readonly)

Returns height of image

Returns:

  • (Integer)

    height of image


# File 'lib/yeah/_platform/image.rb', line 10

#size(Integer, Integer) (readonly)

Returns size of image

Returns:

  • ((Integer, Integer))

    size of image


# File 'lib/yeah/_platform/image.rb', line 13

#widthInteger (readonly)

Returns width of image

Returns:

  • (Integer)

    width of image


# File 'lib/yeah/_platform/image.rb', line 7

Instance Method Details

#to_nNative

Returns native reference

Returns:

  • (Native)

    native reference


# File 'lib/yeah/_platform/image.rb', line 18