class Blend2D::Styling::Pattern
- Blend2D::Styling::Pattern
- Blend2D::BLStructure
- Reference
- Object
Defined in:
blend2d/styling/pattern.crConstructors
-
.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.
- .new(image : Image, *, area : RectI | Nil = nil, matrix : Matrix | Nil = nil, extend_mode : ExtendMode = ExtendMode::Pad)
- .new
Instance Method Summary
-
#finalize
Called when Crystal's garbage collector collects this instance.
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.
def self.new(image : Image, *, area : RectI | Nil = nil, matrix : Matrix | Nil = nil, extend_mode : ExtendMode = ExtendMode::Pad)
#
Instance Method Detail
def finalize
#
Description copied from class Blend2D::BLStructure
Called when Crystal's garbage collector collects this instance.