Game::Image
Inherits Reference < Object
Constructors
new(filename : String)
Sourcenew(image : LibRay::Image = LibRay::Image.new)
SourceClass methods
from_size(width : Int32, height : Int32, color = Color::Transparent)
Sourcefrom_text(text : String, font_size : Float32, spacing : Float32, color : Color, font = Font.default)
Sourceget(filename)
Sourceget_screen_shot
Sourceload(filename)
SourceInstance methods
clone(resize = true)
Sourcedraw(image : Image, x, y, centered = false, tint = Color::White)
Sourcedraw(text : Text)
Sourceflip_horizontal
Sourceflip_horizontal!
Sourceflip_vertical
Sourceflip_vertical!
Sourceget(filename)
Sourceheight
Sourceheight(*args, **options)
Sourceheight(*args, **options, &)
Sourceimage
Sourceload(filename : String)
Sourceresize(width : Int32, height : Int32) : Image
Sourceresize!(width : Int32, height : Int32)
Sourceto_struct
Sourceunload
Sourcewidth
Sourcewidth(*args, **options)
Sourcewidth(*args, **options, &)
Source