class Blend2D::Imaging::Image
- Blend2D::Imaging::Image
- Blend2D::BLStructure
- Reference
- Object
Overview
An Image is a structure provided by Blend2D that contains information about a programmatic image that has data that is mutable.
Defined in:
blend2d/imaging/image.crConstructors
-
.new(w : Int32, h : Int32, format = LibBlend2D::BLFormat::BL_FORMAT_PRGB32)
Initialize a blank image with the provided parameters.
-
.new(file_name : String)
Initialize an image from the file.
-
.new(io : IO)
Initialize an image from an IO.
Instance Method Summary
- #==(other : Image)
- #area
-
#finalize
Called when Crystal's garbage collector collects this instance.
- #height
- #width
- #write_io(codec : Codec)
- #write_to_file(file_name : String, codec : Codec)
Instance methods inherited from class Blend2D::BLStructure
finalize
finalize,
pointer : Pointer
pointer
Constructor Detail
Initialize a blank image with the provided parameters.
Instance Method Detail
def finalize
#
Description copied from class Blend2D::BLStructure
Called when Crystal's garbage collector collects this instance.