class Game::Image

Defined in:

game/image.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(filename : String) #

[View source]
def self.new(image : LibRay::Image = LibRay::Image.new) #

[View source]

Class Method Detail

def self.from_size(width : Int32, height : Int32, color = Color::Transparent) #

[View source]
def self.from_text(text : String, font_size : Float32, spacing : Float32, color : Color, font = Font.default) #

[View source]
def self.get(filename) #

[View source]
def self.get_screen_shot #

[View source]
def self.load(filename) #

[View source]

Instance Method Detail

def clone(resize = true) #

[View source]
def draw(image : Image, x, y, centered = false, tint = Color::White) #

[View source]
def draw(text : Text) #

[View source]
def flip_horizontal #

[View source]
def flip_horizontal! #

[View source]
def flip_vertical #

[View source]
def flip_vertical! #

[View source]
def get(filename) #

[View source]
def height #

[View source]
def height(*args, **options) #

[View source]
def height(*args, **options, &) #

[View source]
def image : LibRay::Image #

[View source]
def load(filename : String) #

[View source]
def resize(width : Int32, height : Int32) : Image #

[View source]
def resize!(width : Int32, height : Int32) #

[View source]
def to_struct : LibRay::Image #

[View source]
def unload #

[View source]
def width #

[View source]
def width(*args, **options) #

[View source]
def width(*args, **options, &) #

[View source]