Klasse TOPBitmap

BeschreibungHierarchieFelderMethodenEigenschaften

Unit

Deklaration

type TOPBitmap = class(TGraphic)

Beschreibung

TOPBitmap

Hierarchie

Übersicht

Methoden

Public constructor Create; virtual;
Public destructor Destroy; override;
Public procedure Assign(Source: TPersistent); override;
Public function GetDataSize: Cardinal;
Public procedure CopyFromColorTable(AColorTable: array of TColor; Swap: Boolean = true; Size: integer = -1);
Public function CountColors(Max: Integer): Integer;
Public function MakePalette(Size: Byte; var ColorTable: TOpenColorTableArray): Boolean;
Public procedure LoadFromStream(Stream: TStream); virtual;
Public procedure SaveToStream(Stream: TStream); virtual;
Public procedure LoadFromFile(const Filename: string); virtual;
Public procedure SaveToFile(const Filename: string); virtual;
Public procedure OPProgress(Sender: TObject; Stage: TOPProgressStage; PercentDone: Byte; RedrawNow: Boolean; const R: TRect; const Msg: string); virtual;
Public procedure SetAlpha(Value: Byte);
Public procedure Clear;
Public function GetTransparentMask(Tolerance: Byte; var Data: PByte; ReversedBits: Boolean; Boundary:TOpRawImageLineEnd): integer;
Public function GetFullMask(var Data: PByte): integer;

Eigenschaften

Public property BPP: byte read GetBPP;
Public property ScanLine[Row: Integer]: Pointer read GetScanLine;
Public property Width: Integer read GetWidth write SetWidth;
Public property Height: Integer read GetHeight write SetHeight;
Public property ColorTable: PColorTableArray read GetColorTable write SetColorTable;
Public property Palette: THandle read GetPalette write SetPalette;
Public property ColorTableSize: integer read fColorTableSize;
Public property PixelFormat: TPixelFormat read GetPixelFormat write SetPixelFormat;
Public property Monochrome: Boolean read fMonochrome write SetMonochrome;
Public property Data: TBitmapData read fData write fData;
Public property Handle: THandle read GetHandle write SetHandle;
Public property ReductionMode: TReductionMode read fReductionMode write fReductionMode;
Public property Transparent: Boolean read GetTransparent write SetTransparent;
Public property TransparentColor: TColor read fTransparentColor write SetTransparentColor;
Public property AlphaBlend: Boolean read fAlphaBlend write SetAlphaBlend;
Public property Pixels[X, Y: Integer]: TColor read GetPixel write SetPixel;
Public property Empty: Boolean read GetEmpty;
Public property OnOPProgress: TOPProgressEvent read fOnOPProgress write fOnOPProgress;

Beschreibung

Methoden

Public constructor Create; virtual;
 
Public destructor Destroy; override;
 
Public procedure Assign(Source: TPersistent); override;
 
Public function GetDataSize: Cardinal;
 
Public procedure CopyFromColorTable(AColorTable: array of TColor; Swap: Boolean = true; Size: integer = -1);
 
Public function CountColors(Max: Integer): Integer;
 
Public function MakePalette(Size: Byte; var ColorTable: TOpenColorTableArray): Boolean;
 
Public procedure LoadFromStream(Stream: TStream); virtual;
 
Public procedure SaveToStream(Stream: TStream); virtual;
 
Public procedure LoadFromFile(const Filename: string); virtual;
 
Public procedure SaveToFile(const Filename: string); virtual;
 
Public procedure OPProgress(Sender: TObject; Stage: TOPProgressStage; PercentDone: Byte; RedrawNow: Boolean; const R: TRect; const Msg: string); virtual;
 
Public procedure SetAlpha(Value: Byte);
 
Public procedure Clear;
 
Public function GetTransparentMask(Tolerance: Byte; var Data: PByte; ReversedBits: Boolean; Boundary:TOpRawImageLineEnd): integer;
 
Public function GetFullMask(var Data: PByte): integer;
 

Eigenschaften

Public property BPP: byte read GetBPP;
 
Public property ScanLine[Row: Integer]: Pointer read GetScanLine;
 
Public property Width: Integer read GetWidth write SetWidth;
 
Public property Height: Integer read GetHeight write SetHeight;
 
Public property ColorTable: PColorTableArray read GetColorTable write SetColorTable;
 
Public property Palette: THandle read GetPalette write SetPalette;
 
Public property ColorTableSize: integer read fColorTableSize;
 
Public property PixelFormat: TPixelFormat read GetPixelFormat write SetPixelFormat;
 
Public property Monochrome: Boolean read fMonochrome write SetMonochrome;
 
Public property Data: TBitmapData read fData write fData;
 
Public property Handle: THandle read GetHandle write SetHandle;
 
Public property ReductionMode: TReductionMode read fReductionMode write fReductionMode;
 
Public property Transparent: Boolean read GetTransparent write SetTransparent;
 
Public property TransparentColor: TColor read fTransparentColor write SetTransparentColor;
 
Public property AlphaBlend: Boolean read fAlphaBlend write SetAlphaBlend;
 
Public property Pixels[X, Y: Integer]: TColor read GetPixel write SetPixel;
 
Public property Empty: Boolean read GetEmpty;

Belongs to Canvas but is nice to have here

Public property OnOPProgress: TOPProgressEvent read fOnOPProgress write fOnOPProgress;
 
Überblick über Theos OpBitmap 0.1.5
Erstellt mit PasDoc 0.10.0 am 2007-03-27 19:20:31