class

UIng::Image

Inherits Reference < Object

Constructors

new(width : Number, height : Number)
Source
new(ref_ptr : Pointer(LibUI::Image))
Source

Instance methods

append(pixels : Bytes, pixel_width : Int32, pixel_height : Int32, byte_stride : Int32) : Nil
Source
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.

Source
free
Source
to_unsafe
Source