class

Blend2D::Imaging::Image

Inherits Blend2D::BLStructure < Reference < Object

An Image is a structure provided by Blend2D that contains information about a programmatic image that has data that is mutable.

Constructors

new(w : Int32, h : Int32, format = LibBlend2D::BLFormat::BL_FORMAT_PRGB32)

Initialize a blank image with the provided parameters.

Source
new(file_name : String)

Initialize an image from the file.

Source
new(io : IO)

Initialize an image from an IO.

Source

Instance methods

==(other : Image)
Source
area
Source
finalize

Called when Crystal's garbage collector collects this instance.

Source
height
Source
width
Source
write_io(codec : Codec)
Source
write_to_file(file_name : String, codec : Codec)
Source