class

Game::Image

Inherits Reference < Object

Constructors

new(filename : String)
Source
new(image : LibRay::Image = LibRay::Image.new)
Source

Class methods

from_size(width : Int32, height : Int32, color = Color::Transparent)
Source
from_text(text : String, font_size : Float32, spacing : Float32, color : Color, font = Font.default)
Source
get(filename)
Source
get_screen_shot
Source
load(filename)
Source

Instance methods

clone(resize = true)
Source
draw(image : Image, x, y, centered = false, tint = Color::White)
Source
draw(text : Text)
Source
flip_horizontal
Source
flip_horizontal!
Source
flip_vertical
Source
flip_vertical!
Source
get(filename)
Source
height
Source
height(*args, **options)
Source
height(*args, **options, &)
Source
image
Source
load(filename : String)
Source
resize(width : Int32, height : Int32) : Image
Source
resize!(width : Int32, height : Int32)
Source
to_struct
Source
unload
Source
width
Source
width(*args, **options)
Source
width(*args, **options, &)
Source