Skip to content

TBLPattern

Pattern.

Definition

Unit: Blend2D

type TBLPattern = record ... end;

Properties

Name Description
Area
ExtendMode
HasTransform
Image
Transform
TransformKind

Constructors

Name Description
Assign Copy constructor creates a weak copy of ASrc.
Create(TBLImage, TBLRectI, TBLExtendMode, TBLMatrix2D)
Create(TBLImage, TBLRectI, TBLExtendMode)
Create(TBLImage, TBLExtendMode, TBLMatrix2D)
Create(TBLImage, TBLExtendMode)
Finalize Destroys the pattern.
Initialize Creates a default constructed pattern.

Operators

Name Description
Equal Equality operator, performs the same operation as ALeft.Equals(ARight).
NotEqual Equality operator, performs the same operation as not ALeft.Equals(ARight).

Methods

Name Description
ApplyTransform
Equals
Make(TBLImage, TBLRectI, TBLExtendMode, TBLMatrix2D)
Make(TBLImage, TBLRectI, TBLExtendMode)
Make(TBLImage, TBLExtendMode, TBLMatrix2D)
Make(TBLImage, TBLExtendMode)
PostRotate(Double, TBLPointI)
PostRotate(Double, TBLPoint)
PostRotate(Double, Double, Double)
PostRotate(Double)
PostScale(TBLPointI)
PostScale(TBLPoint)
PostScale(Double, Double)
PostScale(Double)
PostSkew(TBLPoint)
PostSkew(Double, Double)
PostTransform
PostTranslate(TBLPointI)
PostTranslate(TBLPoint)
PostTranslate(Double, Double)
Reset
ResetArea Updates the pattern area rectangle to [0, 0, Image.Width, Image.Height].
ResetExtendMode
ResetImage Resets pattern image to empty image and clears pattern area rectangle to [0, 0, 0, 0].
ResetTransform
Rotate(Double, TBLPointI)
Rotate(Double, TBLPoint)
Rotate(Double, Double, Double)
Rotate(Double)
Scale(TBLPointI)
Scale(TBLPoint)
Scale(Double, Double)
Scale(Double)
SetImage
Skew(TBLPoint)
Skew(Double, Double)
Swap
Translate(TBLPointI)
Translate(TBLPoint)
Translate(Double, Double)

Property Descriptions

Area

property Area: TBLRectI read GetArea write SetArea

Type: TBLRectI


ExtendMode

property ExtendMode: TBLExtendMode read GetExtendMode write SetExtendMode

Type: TBLExtendMode


HasTransform

property HasTransform: Boolean read GetHasTransform

Type: Boolean


Image

property Image: TBLImage read GetImage write SetImage

Type: TBLImage


Transform

property Transform: TBLMatrix2D read GetTransform write SetTransform

Type: TBLMatrix2D


TransformKind

property TransformKind: TBLTransformKind read GetTransformKind

Type: TBLTransformKind


Constructor Descriptions

Assign

Copy constructor creates a weak copy of ASrc.

constructor Assign(var ADest: TBLPattern; const ASrc: TBLPattern); inline

Parameters

ADest: TBLPattern

ASrc: TBLPattern

Exceptions

EBlend2DError: Raised on failure.


Create

constructor Create(const AImage: TBLImage; const AArea: TBLRectI; const AExtendMode: TBLExtendMode; const ATransform: TBLMatrix2D); overload

Parameters

AImage: TBLImage

AArea: TBLRectI

AExtendMode: TBLExtendMode

ATransform: TBLMatrix2D


Create

constructor Create(const AImage: TBLImage; const AArea: TBLRectI; const AExtendMode: TBLExtendMode = TBLExtendMode.Repeating); overload

Parameters

AImage: TBLImage

AArea: TBLRectI

AExtendMode: TBLExtendMode = TBLExtendMode.Repeating


Create

constructor Create(const AImage: TBLImage; const AExtendMode: TBLExtendMode; const ATransform: TBLMatrix2D); overload

Parameters

AImage: TBLImage

AExtendMode: TBLExtendMode

ATransform: TBLMatrix2D


Create

constructor Create(const AImage: TBLImage; const AExtendMode: TBLExtendMode = TBLExtendMode.Repeating); overload

Parameters

AImage: TBLImage

AExtendMode: TBLExtendMode = TBLExtendMode.Repeating


Finalize

Destroys the pattern.

destructor Finalize(var ADest: TBLPattern)

Parameters

ADest: TBLPattern

Exceptions

EBlend2DError: Raised on failure.


Initialize

Creates a default constructed pattern.

constructor Initialize(out ADest: TBLPattern)

Parameters

ADest: TBLPattern

Exceptions

EBlend2DError: Raised on failure.


Operator Descriptions

Equal(TBLPattern, TBLPattern)

Equality operator, performs the same operation as ALeft.Equals(ARight).

class operator Equal(const ALeft, ARight: TBLPattern): Boolean; inline; static

Parameters

ALeft: TBLPattern

ARight: TBLPattern

Returns

Boolean


NotEqual(TBLPattern, TBLPattern)

Equality operator, performs the same operation as not ALeft.Equals(ARight).

class operator NotEqual(const ALeft, ARight: TBLPattern): Boolean; inline; static

Parameters

ALeft: TBLPattern

ARight: TBLPattern

Returns

Boolean


Method Descriptions

ApplyTransform(TBLMatrix2D)

procedure ApplyTransform(const ATransform: TBLMatrix2D); inline

Parameters

ATransform: TBLMatrix2D


Equals(TBLPattern)

function Equals(const AOther: TBLPattern): Boolean; inline

Parameters

AOther: TBLPattern

Returns

Boolean


Make(TBLImage, TBLRectI, TBLExtendMode, TBLMatrix2D)

procedure Make(const AImage: TBLImage; const AArea: TBLRectI; const AExtendMode: TBLExtendMode; const ATransform: TBLMatrix2D); overload; inline

Parameters

AImage: TBLImage

AArea: TBLRectI

AExtendMode: TBLExtendMode

ATransform: TBLMatrix2D


Make(TBLImage, TBLRectI, TBLExtendMode)

procedure Make(const AImage: TBLImage; const AArea: TBLRectI; const AExtendMode: TBLExtendMode = TBLExtendMode.Repeating); overload; inline

Parameters

AImage: TBLImage

AArea: TBLRectI

AExtendMode: TBLExtendMode = TBLExtendMode.Repeating


Make(TBLImage, TBLExtendMode, TBLMatrix2D)

procedure Make(const AImage: TBLImage; const AExtendMode: TBLExtendMode; const ATransform: TBLMatrix2D); overload; inline

Parameters

AImage: TBLImage

AExtendMode: TBLExtendMode

ATransform: TBLMatrix2D


Make(TBLImage, TBLExtendMode)

procedure Make(const AImage: TBLImage; const AExtendMode: TBLExtendMode = TBLExtendMode.Repeating); overload; inline

Parameters

AImage: TBLImage

AExtendMode: TBLExtendMode = TBLExtendMode.Repeating


PostRotate(Double, TBLPointI)

procedure PostRotate(const AAngle: Double; const AOrigin: TBLPointI); overload; inline

Parameters

AAngle: Double

AOrigin: TBLPointI


PostRotate(Double, TBLPoint)

procedure PostRotate(const AAngle: Double; const AOrigin: TBLPoint); overload; inline

Parameters

AAngle: Double

AOrigin: TBLPoint


PostRotate(Double, Double, Double)

procedure PostRotate(const AAngle, AX, AY: Double); overload; inline

Parameters

AAngle: Double

AX: Double

AY: Double


PostRotate(Double)

procedure PostRotate(const AAngle: Double); overload; inline

Parameters

AAngle: Double


PostScale(TBLPointI)

procedure PostScale(const AP: TBLPointI); overload; inline

Parameters

AP: TBLPointI


PostScale(TBLPoint)

procedure PostScale(const AP: TBLPoint); overload; inline

Parameters

AP: TBLPoint


PostScale(Double, Double)

procedure PostScale(const AX, AY: Double); overload; inline

Parameters

AX: Double

AY: Double


PostScale(Double)

procedure PostScale(const AXY: Double); overload; inline

Parameters

AXY: Double


PostSkew(TBLPoint)

procedure PostSkew(const AP: TBLPoint); overload; inline

Parameters

AP: TBLPoint


PostSkew(Double, Double)

procedure PostSkew(const AX, AY: Double); overload; inline

Parameters

AX: Double

AY: Double


PostTransform(TBLMatrix2D)

procedure PostTransform(const ATransform: TBLMatrix2D); inline

Parameters

ATransform: TBLMatrix2D


PostTranslate(TBLPointI)

procedure PostTranslate(const AP: TBLPointI); overload; inline

Parameters

AP: TBLPointI


PostTranslate(TBLPoint)

procedure PostTranslate(const AP: TBLPoint); overload; inline

Parameters

AP: TBLPoint


PostTranslate(Double, Double)

procedure PostTranslate(const AX, AY: Double); overload; inline

Parameters

AX: Double

AY: Double


Reset

procedure Reset; inline


ResetArea

Updates the pattern area rectangle to [0, 0, Image.Width, Image.Height].

procedure ResetArea; inline

Exceptions

EBlend2DError: Raised on failure.


ResetExtendMode

procedure ResetExtendMode; inline


ResetImage

Resets pattern image to empty image and clears pattern area rectangle to [0, 0, 0, 0].

procedure ResetImage; inline

Exceptions

EBlend2DError: Raised on failure.


ResetTransform

procedure ResetTransform; inline


Rotate(Double, TBLPointI)

procedure Rotate(const AAngle: Double; const AOrigin: TBLPointI); overload; inline

Parameters

AAngle: Double

AOrigin: TBLPointI


Rotate(Double, TBLPoint)

procedure Rotate(const AAngle: Double; const AOrigin: TBLPoint); overload; inline

Parameters

AAngle: Double

AOrigin: TBLPoint


Rotate(Double, Double, Double)

procedure Rotate(const AAngle, AX, AY: Double); overload; inline

Parameters

AAngle: Double

AX: Double

AY: Double


Rotate(Double)

procedure Rotate(const AAngle: Double); overload; inline

Parameters

AAngle: Double


Scale(TBLPointI)

procedure Scale(const AP: TBLPointI); overload; inline

Parameters

AP: TBLPointI


Scale(TBLPoint)

procedure Scale(const AP: TBLPoint); overload; inline

Parameters

AP: TBLPoint


Scale(Double, Double)

procedure Scale(const AX, AY: Double); overload; inline

Parameters

AX: Double

AY: Double


Scale(Double)

procedure Scale(const AXY: Double); overload; inline

Parameters

AXY: Double


SetImage(TBLImage, TBLRectI)

procedure SetImage(const AValue: TBLImage; const AArea: TBLRectI); overload; inline

Parameters

AValue: TBLImage

AArea: TBLRectI


Skew(TBLPoint)

procedure Skew(const AP: TBLPoint); overload; inline

Parameters

AP: TBLPoint


Skew(Double, Double)

procedure Skew(const AX, AY: Double); overload; inline

Parameters

AX: Double

AY: Double


Swap(TBLPattern)

procedure Swap(var AOther: TBLPattern); inline

Parameters

AOther: TBLPattern


Translate(TBLPointI)

procedure Translate(const AP: TBLPointI); overload; inline

Parameters

AP: TBLPointI


Translate(TBLPoint)

procedure Translate(const AP: TBLPoint); overload; inline

Parameters

AP: TBLPoint


Translate(Double, Double)

procedure Translate(const AX, AY: Double); overload; inline

Parameters

AX: Double

AY: Double