UIng::Image
Inherits UIng::BlockConstructor < Reference < Object
Constructors
Creates a native image from any CrImage image. The caller owns the result.
from_file(path : String) : Image
Reads an image by content, independently of its file extension. The caller owns the returned native image.
new(*args, &)
Sourcenew(*args, **kwargs, &)
Sourcenew(width : Number, height : Number)
SourceInstance methods
append(pixels : Bytes, pixel_width : Int32, pixel_height : Int32, byte_stride : Int32) : Nil
Sourceappend(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.
Adds a CrImage representation, for example a higher resolution icon.
free
Sourceheight
Sourceto_unsafe
Sourcewidth
Source