class Boleite::Image

Included Modules

Defined in:

boleite/graphics/image.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(width : UInt32, height : UInt32, bpp : UInt32, pixels) #

[View source]
def self.new(width, height, bpp = 32_u32) #

[View source]
def self.new(file : String) #

[View source]
def self.new(native : Pointer(LibFreeImage::FIBITMAP)) #

[View source]

Class Method Detail

def self.load_file(file) #

[View source]

Macro Detail

macro assert(test) #

[View source]
macro ensures(test) #

[View source]
macro invariant(test) #

[View source]
macro requires(test) #

[View source]

Instance Method Detail

def bpp #

def byte_size : UInt64 #

[View source]
def clone #

[View source]
def contract_ensures_get_pixel(return_value, x, y) #

[View source]
def contract_ensures_set_pixel(return_value, x, y, color : Colori) #

[View source]
def contract_ensures_set_pixel(return_value, x, y, color : Colorf) #

[View source]
def contract_post_get_pixel(check_depth, return_value, x, y) #

[View source]
def contract_post_set_pixel(check_depth, return_value, x, y, color : Colori) #

[View source]
def contract_post_set_pixel(check_depth, return_value, x, y, color : Colorf) #

[View source]
def contract_pre_get_pixel(check_depth, x, y) #

[View source]
def contract_pre_set_pixel(check_depth, x, y, color : Colori) #

[View source]
def contract_pre_set_pixel(check_depth, x, y, color : Colorf) #

[View source]
def contract_requires_get_pixel(x, y) #

[View source]
def contract_requires_set_pixel(x, y, color : Colori) #

[View source]
def contract_requires_set_pixel(x, y, color : Colorf) #

[View source]
def convert_16bit(pixel, index) : Void #

[View source]
def convert_24bit(pixel, index) : Void #

[View source]
def convert_32bit(pixel, index) : Void #

[View source]
def fill(color : Colori) #

[View source]
def get_pixel(x, y) #

[View source]
def height #

def pixels #

def set_pixel(x, y, color : Colori) #

[View source]
def set_pixel(x, y, color : Colorf) #

[View source]
def size #

[View source]
def test_invariant_contracts(method = "") #

[View source]
def update(x, y, w, h, color : Colori) #

[View source]
def update(rect, color : Colori) #

[View source]
def width #