Reference TInterfacedBitmap
Declared in Codebot.Graphics.Windows.InterfacedBitmap.pas on line 28
TInterfacedBitmap is the base IBitmap implementation used by the Windows backends
TInterfacedBitmap = class(TInterfacedObject, IBitmap)
protected
FBitmap: TFastBitmap;
FSurface: ISurface;
function HandleAvailable: Boolean; virtual;
procedure HandleRelease; virtual;
procedure Flush;
public
destructor Destroy; override;
function Clone: IBitmap;
function GetEmpty: Boolean;
function GetSurface: ISurface; virtual;
function GetClientRect: TRectI;
function GetFormat: TImageFormat;
procedure SetFormat(Value: TImageFormat);
function GetHeight: Integer;
function GetWidth: Integer;
function GetPixels: Pointer; virtual;
procedure Clear; virtual;
function Resample(Width, Height: Integer; Quality: TResampleQuality = rqNormal): IBitmap;
procedure LoadFromFile(const FileName: string);
procedure LoadFromStream(Stream: TStream);
procedure SaveToFile(const FileName: string);
procedure SaveToStream(Stream: TStream);
procedure SetSize(Width, Height: Integer);
property Surface: ISurface read GetSurface;
property Empty: Boolean read GetEmpty;
property ClientRect: TRectI read GetClientRect;
property Format: TImageFormat read GetFormat write SetFormat;
property Width: Integer read GetWidth;
property Height: Integer read GetHeight;
property Pixels: Pointer read GetPixels;
end;See also
IBitmap in Codebot.Graphics.Types.pas
ISurface in Codebot.Graphics.Types.pas
TFastBitmap in Codebot.Graphics.Windows.ImageBitmap.pas
TImageFormat in Codebot.Graphics.Types.pas
TRectI in Codebot.Graphics.Types.pas
TResampleQuality in Codebot.Graphics.Types.pas