class

Blend2D::Styling::Pattern

Inherits Blend2D::BLStructure < Reference < Object

Constructors

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.

Source
new(image : Image, *, area : RectI | Nil = nil, matrix : Matrix | Nil = nil, extend_mode : ExtendMode = ExtendMode::Pad)
Source

Instance methods

finalize

Called when Crystal's garbage collector collects this instance.

Source