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.
new(image : Image, *, area : RectI | Nil = nil, matrix : Matrix | Nil = nil, extend_mode : ExtendMode = ExtendMode::Pad)
Sourcenew
Source