class Game::Image
- Game::Image
- Reference
- Object
Defined in:
game/image.crConstructors
Class Method Summary
- .from_size(width : Int32, height : Int32, color = Color::Transparent)
- .from_text(text : String, font_size : Float32, spacing : Float32, color : Color, font = Font.default)
- .get(filename)
- .get_screen_shot
- .load(filename)
Instance Method Summary
- #clone(resize = true)
- #draw(image : Image, x, y, centered = false, tint = Color::White)
- #draw(text : Text)
- #flip_horizontal
- #flip_horizontal!
- #flip_vertical
- #flip_vertical!
- #get(filename)
- #height
- #height(*args, **options)
- #height(*args, **options, &)
- #image : LibRay::Image
- #load(filename : String)
- #resize(width : Int32, height : Int32) : Image
- #resize!(width : Int32, height : Int32)
- #to_struct : LibRay::Image
- #unload
- #width
- #width(*args, **options)
- #width(*args, **options, &)
Constructor Detail
Class Method Detail
def self.from_text(text : String, font_size : Float32, spacing : Float32, color : Color, font = Font.default)
#