class Blend2D::Imaging::Image

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.cr

Constructors

Instance Method Summary

Instance methods inherited from class Blend2D::BLStructure

finalize finalize, pointer : Pointer pointer

Constructor Detail

def self.new(w : Int32, h : Int32, format = LibBlend2D::BLFormat::BL_FORMAT_PRGB32) #

Initialize a blank image with the provided parameters.


[View source]
def self.new(file_name : String) #

Initialize an image from the file.


[View source]
def self.new(io : IO) #

Initialize an image from an IO.


[View source]

Instance Method Detail

def ==(other : Image) #

[View source]
def area #

[View source]
def finalize #
Description copied from class Blend2D::BLStructure

Called when Crystal's garbage collector collects this instance.


[View source]
def height #

[View source]
def width #

[View source]
def write_io(codec : Codec) #

[View source]
def write_to_file(file_name : String, codec : Codec) #

[View source]