ImageEn, unit iexDBBitmaps

TIEDBMultiBitmap

TIEDBMultiBitmap


Description


TIEDBMultiBitmap is a descendant of TIECustomMultiBitmap, but unlike TIEMultiBitmap it links to a datasource to provide access to images stored in a database table.
Generally a TIEDBMultiBitmap is attached to a TImageEnMView to make it DB aware.

TIEDBMultiBitmap supports both images stored within the database as a blob (by setting ImageBlobField) or images stored locally and referenced by a filename field (by setting only FilenameField). You will also need to set DataSource.


Demo


  Demos\Database\DBMultiBitmap\DBMultiBitmap.dpr



Example


// Create DB Aware TImageEnMView
procedure TMainForm.FormCreate(Sender: TObject);
begin
  ... Open a database table ...

  fDBMBitmap := TIEDBMultiBitmap.create( DataSource1, 'Image', 'Name' );
  ImageEnMView1.SetExternalMBitmap( fDBMBitmap );
end;

procedure TMainForm.FormDestroy(Sender: TObject);
begin
  FreeAndNil( fDBMBitmap );
end;


Methods and Properties


General
  Create
  Destroy
  Count
  LockUpdate
  LockUpdateCount
  Modified
  UnlockUpdate


Database
  DataSource
  FollowDBCursor
  FilenameField
  FilenameFieldIsUnique
  ImageBlobField
  ImageFormat
  ImagePath
  ImageStorageMode
  MaxDisplayRecords
  Update
  UseMemoryStream


Database Editing
  AppendImage
  DefaultFilename
  DeleteImage
  InsertImage
  JpegQuality
  ReadOnly


Image Access
  CopyToIEBitmap
  GetBitmap
  GetTIEBitmap
  ReleaseBitmap
  SetImage


Image Information
  ImageBitCount
  ImageFilename
  ImageHeight
  ImageTag
  ImageUserPointer
  ImageWidth


Input/Output
  ImageCacheSize
  ImageCacheUseDisk
  GetImageToFile
  GetImageToStream


Input/Output Parameters (Meta-Data)
  ParamsEnabled
  Params


Image Manipulation
  Flip
  Resample
  Rotate


 Unique functionality to TIEDBMultiBitmap