class UIng::Image

Defined in:

uing/image.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Number, height : Number) #

[View source]
def self.new(ref_ptr : Pointer(LibUI::Image)) #

[View source]

Instance Method Detail

def append(pixels : Bytes, pixel_width : Int32, pixel_height : Int32, byte_stride : Int32) : Nil #

[View source]
def append(pixels : Pointer, pixel_width : Int32, pixel_height : Int32, byte_stride : Int32) : Nil #

The caller is responsible for ensuring that the pointer references at least byte_stride * pixel_height readable bytes.


[View source]
def free : Nil #

[View source]
def to_unsafe #

[View source]