Reference IBitmapBrush
Declared in Codebot.Render.Graphics.pas on line 347
IBitmapBrush references a bitmap as a repeatable fill pattern. The pattern can be scaled along two axes, translated, rotated, and alpha blended.
Note: GLES2 backend requires patterns to be a power of two or they will not wrap.
IBitmapBrush = interface(IBrush)
public
function GetBitmap: IBitmap;
procedure SetBitmap(Value: IBitmap);
function GetAngle: Float;
procedure SetAngle(Value: Float);
function GetOffset: TPointF;
procedure SetOffset(const Value: TPointF);
function GetScale: TPointF;
procedure SetScale(const Value: TPointF);
function GetOpacity: Float;
procedure SetOpacity(Value: Float);
{ The bitmap repeated as the pattern }
property Bitmap: IBitmap read GetBitmap write SetBitmap;
{ The angle the pattern is rotated by }
property Angle: Float read GetAngle write SetAngle;
{ The distance the pattern is moved }
property Offset: TPointF read GetOffset write SetOffset;
{ The scale of the pattern along each axis }
property Scale: TPointF read GetScale write SetScale;
{ The opacity of the pattern from 0 to 1 }
property Opacity: Float read GetOpacity write SetOpacity;
end;See also
Float in Codebot.System.pas
TPointF in Codebot.Graphics.Types.pas