Class TBGRASliceScaling
Unit
Declaration
type TBGRASliceScaling = class(TObject)
Description
Class to configure and render slice scaling of a bitmap
Hierarchy
- TObject
- TBGRASliceScaling
Overview
Methods
constructor Create(ABitmap: TBGRABitmap; ABitmapOwner: boolean = false); overload; |
|
constructor Create(ABitmap: TBitmap); overload; |
|
constructor Create(AFilename: string; AIsUtf8: boolean; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
constructor Create(AStream: TStream; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
constructor Create(AStream: TStream); overload; |
|
constructor Create; overload; |
|
constructor Create(AFilename: string); overload; |
|
constructor Create(AFilename: string; AIsUtf8: boolean); overload; |
|
constructor Create(ABitmap: TBGRABitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer; ABitmapOwner: boolean = false); overload; |
|
constructor Create(ABitmap: TBitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
constructor Create(AFilename: string; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
destructor Destroy; override; |
|
function ComputeSliceRectArray(ARect: TRect): TSliceRectArray; |
|
procedure AutodetectRepeat; |
|
procedure Draw(ABitmap: TBGRABitmap; ARect: TRect; DrawGrid: boolean = False); overload; |
|
procedure Draw(ABitmap: TBGRABitmap; ALeft, ATop, AWidth, AHeight: integer; DrawGrid: boolean = False); overload; |
|
procedure NotifyBitmapChanged; |
|
procedure SetMargins(AMargins: TMargins); overload; |
|
procedure SetMargins(AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
procedure ClearBitmapArray; |
|
procedure Init; |
|
procedure SliceScalingDraw(ADest: TBGRABitmap; ADestRect: TRect; DrawGrid: boolean = False); |
|
procedure UpdateSliceRectArray; |
Properties
property BitmapHeight: integer read GetBitmapHeight; |
|
property BitmapSource: TBGRABitmap read FBitmap write SetBitmap; |
|
property BitmapSourceRect: TRect read FBitmapSourceRect write SetBitmapSourceRect; |
|
property BitmapWidth: integer read GetBitmapWidth; |
|
property DrawMode: TDrawMode read FDrawMode write SetDrawMode; |
|
property Margins: TMargins read FMargins write SetMargins; |
|
property ResampleFilter: TResampleFilter read FResampleFilter
write SetResampleFilter; |
|
property ResampleMode: TResampleMode read FResampleMode write SetResampleMode; |
|
property SliceBitmap[APosition: TSlicePosition]: TBGRABitmap read GetSlice; |
|
property SliceRepeat[Aposition: TSliceRepeatPosition]: boolean
read GetSliceRepeat write SetSliceRepeat; |
|
property SliceRepeatAsString: string read GetSliceRepeatAsString write SetSliceRepeatAsString; |
Description
Methods
constructor Create(ABitmap: TBGRABitmap; ABitmapOwner: boolean = false); overload; |
|
This item has no description. |
constructor Create(ABitmap: TBitmap); overload; |
|
This item has no description. |
constructor Create(AFilename: string; AIsUtf8: boolean; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
This item has no description. |
constructor Create(AStream: TStream; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
This item has no description. |
constructor Create(AStream: TStream); overload; |
|
This item has no description. |
constructor Create; overload; |
|
This item has no description. |
constructor Create(AFilename: string); overload; |
|
This item has no description. |
constructor Create(AFilename: string; AIsUtf8: boolean); overload; |
|
This item has no description. |
constructor Create(ABitmap: TBGRABitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer; ABitmapOwner: boolean = false); overload; |
|
Create an instance and stores the bitmap, either as a reference to a TBGRABitmap from the caller, or as a local owned copy in other cases |
constructor Create(ABitmap: TBitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
This item has no description. |
constructor Create(AFilename: string; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function ComputeSliceRectArray(ARect: TRect): TSliceRectArray; |
|
This item has no description. |
procedure AutodetectRepeat; |
|
This item has no description. |
procedure Draw(ABitmap: TBGRABitmap; ARect: TRect; DrawGrid: boolean = False); overload; |
|
to notify the source bitmap has changed so new bitmaps should be used Draw |
procedure Draw(ABitmap: TBGRABitmap; ALeft, ATop, AWidth, AHeight: integer; DrawGrid: boolean = False); overload; |
|
This item has no description. |
procedure NotifyBitmapChanged; |
|
This item has no description. |
procedure SetMargins(AMargins: TMargins); overload; |
|
This item has no description. |
procedure SetMargins(AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload; |
|
This item has no description. |
procedure ClearBitmapArray; |
|
This item has no description. |
procedure Init; |
|
This item has no description. |
procedure SliceScalingDraw(ADest: TBGRABitmap; ADestRect: TRect; DrawGrid: boolean = False); |
|
This item has no description. |
procedure UpdateSliceRectArray; |
|
Stuff |
Properties
property BitmapHeight: integer read GetBitmapHeight; |
|
This item has no description. |
property BitmapSource: TBGRABitmap read FBitmap write SetBitmap; |
|
This item has no description. |
property BitmapSourceRect: TRect read FBitmapSourceRect write SetBitmapSourceRect; |
|
This item has no description. |
property BitmapWidth: integer read GetBitmapWidth; |
|
This item has no description. |
property DrawMode: TDrawMode read FDrawMode write SetDrawMode; |
|
Property |
property Margins: TMargins read FMargins write SetMargins; |
|
This item has no description. |
property ResampleFilter: TResampleFilter read FResampleFilter
write SetResampleFilter; |
|
This item has no description. |
property ResampleMode: TResampleMode read FResampleMode write SetResampleMode; |
|
This item has no description. |
property SliceBitmap[APosition: TSlicePosition]: TBGRABitmap read GetSlice; |
|
This item has no description. |
property SliceRepeat[Aposition: TSliceRepeatPosition]: boolean
read GetSliceRepeat write SetSliceRepeat; |
|
This item has no description. |
property SliceRepeatAsString: string read GetSliceRepeatAsString write SetSliceRepeatAsString; |
|
This item has no description. |