class Blend2D::Styling::Pattern

Defined in:

blend2d/styling/pattern.cr

Constructors

Instance Method Summary

Instance methods inherited from class Blend2D::BLStructure

finalize finalize, pointer : Pointer pointer

Constructor Detail

def self.new(image : Image, source_rect : RectI | Nil = nil, dest_rect : RectI | Nil = nil, extend_mode : ExtendMode = ExtendMode::Pad) #

Create a pattern, mapping a source rectangle from the base image to a destination rectangle. Helper method wrapping some Matrix logic.


[View source]
def self.new(image : Image, *, area : RectI | Nil = nil, matrix : Matrix | Nil = nil, extend_mode : ExtendMode = ExtendMode::Pad) #

[View source]
def self.new #

[View source]

Instance Method Detail

def finalize #
Description copied from class Blend2D::BLStructure

Called when Crystal's garbage collector collects this instance.


[View source]