Class TBGRASliceScaling

Unit

Declaration

type TBGRASliceScaling = class(TObject)

Description

Class to configure and render slice scaling of a bitmap

Hierarchy

Overview

Methods

Public constructor Create(ABitmap: TBGRABitmap; ABitmapOwner: boolean = false); overload;
Public constructor Create(ABitmap: TBitmap); overload;
Public constructor Create(AFilename: string; AIsUtf8: boolean; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;
Public constructor Create(AStream: TStream; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;
Public constructor Create(AStream: TStream); overload;
Public constructor Create; overload;
Public constructor Create(AFilename: string); overload;
Public constructor Create(AFilename: string; AIsUtf8: boolean); overload;
Public constructor Create(ABitmap: TBGRABitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer; ABitmapOwner: boolean = false); overload;
Public constructor Create(ABitmap: TBitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;
Public constructor Create(AFilename: string; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;
Public destructor Destroy; override;
Protected function ComputeSliceRectArray(ARect: TRect): TSliceRectArray;
Public procedure AutodetectRepeat;
Public procedure Draw(ABitmap: TBGRABitmap; ARect: TRect; DrawGrid: boolean = False); overload;
Public procedure Draw(ABitmap: TBGRABitmap; ALeft, ATop, AWidth, AHeight: integer; DrawGrid: boolean = False); overload;
Public procedure NotifyBitmapChanged;
Public procedure SetMargins(AMargins: TMargins); overload;
Public procedure SetMargins(AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;
Protected procedure ClearBitmapArray;
Protected procedure Init;
Protected procedure SliceScalingDraw(ADest: TBGRABitmap; ADestRect: TRect; DrawGrid: boolean = False);
Protected procedure UpdateSliceRectArray;

Properties

Public property BitmapHeight: integer read GetBitmapHeight;
Public property BitmapSource: TBGRABitmap read FBitmap write SetBitmap;
Public property BitmapSourceRect: TRect read FBitmapSourceRect write SetBitmapSourceRect;
Public property BitmapWidth: integer read GetBitmapWidth;
Public property DrawMode: TDrawMode read FDrawMode write SetDrawMode;
Public property Margins: TMargins read FMargins write SetMargins;
Public property ResampleFilter: TResampleFilter read FResampleFilter write SetResampleFilter;
Public property ResampleMode: TResampleMode read FResampleMode write SetResampleMode;
Public property SliceBitmap[APosition: TSlicePosition]: TBGRABitmap read GetSlice;
Public property SliceRepeat[Aposition: TSliceRepeatPosition]: boolean read GetSliceRepeat write SetSliceRepeat;
Public property SliceRepeatAsString: string read GetSliceRepeatAsString write SetSliceRepeatAsString;

Description

Methods

Public constructor Create(ABitmap: TBGRABitmap; ABitmapOwner: boolean = false); overload;

This item has no description.

Public constructor Create(ABitmap: TBitmap); overload;

This item has no description.

Public constructor Create(AFilename: string; AIsUtf8: boolean; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;

This item has no description.

Public constructor Create(AStream: TStream; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;

This item has no description.

Public constructor Create(AStream: TStream); overload;

This item has no description.

Public constructor Create; overload;

This item has no description.

Public constructor Create(AFilename: string); overload;

This item has no description.

Public constructor Create(AFilename: string; AIsUtf8: boolean); overload;

This item has no description.

Public 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

Public constructor Create(ABitmap: TBitmap; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;

This item has no description.

Public constructor Create(AFilename: string; AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Protected function ComputeSliceRectArray(ARect: TRect): TSliceRectArray;

This item has no description.

Public procedure AutodetectRepeat;

This item has no description.

Public procedure Draw(ABitmap: TBGRABitmap; ARect: TRect; DrawGrid: boolean = False); overload;

to notify the source bitmap has changed so new bitmaps should be used Draw

Public procedure Draw(ABitmap: TBGRABitmap; ALeft, ATop, AWidth, AHeight: integer; DrawGrid: boolean = False); overload;

This item has no description.

Public procedure NotifyBitmapChanged;

This item has no description.

Public procedure SetMargins(AMargins: TMargins); overload;

This item has no description.

Public procedure SetMargins(AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); overload;

This item has no description.

Protected procedure ClearBitmapArray;

This item has no description.

Protected procedure Init;

This item has no description.

Protected procedure SliceScalingDraw(ADest: TBGRABitmap; ADestRect: TRect; DrawGrid: boolean = False);

This item has no description.

Protected procedure UpdateSliceRectArray;

Stuff

Properties

Public property BitmapHeight: integer read GetBitmapHeight;

This item has no description.

Public property BitmapSource: TBGRABitmap read FBitmap write SetBitmap;

This item has no description.

Public property BitmapSourceRect: TRect read FBitmapSourceRect write SetBitmapSourceRect;

This item has no description.

Public property BitmapWidth: integer read GetBitmapWidth;

This item has no description.

Public property DrawMode: TDrawMode read FDrawMode write SetDrawMode;

Property

Public property Margins: TMargins read FMargins write SetMargins;

This item has no description.

Public property ResampleFilter: TResampleFilter read FResampleFilter write SetResampleFilter;

This item has no description.

Public property ResampleMode: TResampleMode read FResampleMode write SetResampleMode;

This item has no description.

Public property SliceBitmap[APosition: TSlicePosition]: TBGRABitmap read GetSlice;

This item has no description.

Public property SliceRepeat[Aposition: TSliceRepeatPosition]: boolean read GetSliceRepeat write SetSliceRepeat;

This item has no description.

Public property SliceRepeatAsString: string read GetSliceRepeatAsString write SetSliceRepeatAsString;

This item has no description.