Unit 'ImagingClasses' Package
[Overview][Classes][Index] [#pl_vampyreimaging]

TBaseImage

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: ImagingClasses.pas line 25

type TBaseImage = class(TPersistent)

protected

  FPData: PImageData;

  

  FOnDataSizeChanged: TNotifyEvent;

  

  FOnPixelsChanged: TNotifyEvent;

  

  function GetFormat;

  

  function GetHeight;

  

  function GetSize;

  

  function GetWidth;

  

  function GetBits;

  

  function GetPalette;

  

  function GetPaletteEntries;

  

  function GetScanline();

  

  function GetPixelPointer();

  

  function GetScanlineSize;

  

  function GetFormatInfo;

  

  function GetValid;

  

  function GetBoundsRect;

  

  procedure SetFormat();

  

  procedure SetHeight();

  

  procedure SetWidth();

  

  procedure SetPointer; virtual; abstract;

  

  procedure DoDataSizeChanged; virtual;

  

  procedure DoPixelsChanged; virtual;

  

public

  constructor Create; virtual;

  

  constructor CreateFromImage();

  

  destructor Destroy; override;

  

  function ToString; override;

  

  procedure RecreateImageData();

  

  procedure MapImageData();

  

  procedure Clear;

  

  procedure Resize();

  

  procedure ResizeToFit();

  

  procedure Flip;

  

  procedure Mirror;

  

  procedure Rotate();

  

  procedure CopyTo();

  

  procedure StretchTo();

  

  procedure ReplaceColor();

  

  procedure SwapChannels();

  

  procedure LoadFromFile(); virtual;

  

  procedure LoadFromStream(); virtual;

  

  function SaveToFile();

  

  function SaveToStream();

  

  property Width: Integer; [rw]

  

  property Height: Integer; [rw]

  

  property Format: TImageFormat; [rw]

  

  property Size: Integer; [r]

  

  property Bits: Pointer; [r]

  

  property Palette: PPalette32; [r]

  

  property PaletteEntries: Integer; [r]

  

  property Scanline []: Pointer; [r]

  

  property PixelPointer []: Pointer; [r]

  

  property ScanlineSize: Integer; [r]

  

  property FormatInfo: TImageFormatInfo; [r]

  

  property ImageDataPointer: PImageData; [r]

  

  property Valid: Boolean; [r]

  

  property Empty: Boolean; [r]

  

  property BoundsRect: TRect; [r]

  

  property OnDataSizeChanged: TNotifyEvent; [rw]

  

  property OnPixelsChanged: TNotifyEvent; [rw]

  

end;

Inheritance

TBaseImage

  

|

TObject



CT Web help

CodeTyphon Studio