ImageEn, unit iexDBBitmaps

TIEDBMultiBitmap.GetTIEBitmap

TIEDBMultiBitmap.GetTIEBitmap


Declaration

function GetTIEBitmap(idx: Integer): TIEBitmap;


Description

Creates a TIEBitmap object from the image at index, idx.
You will need to call ReleaseBitmap to free the TIEBitmap object and optionally update the image in the database

Note: If ParamsEnabled=True then the returned TIEBitmap will have Params.


Example

// Prompt the user to apply effects to a database image
var
  bmp: TIEBitmap;
  proc: TImageEnProc;
  bChanged: Boolean;
begin
  if ImageEnMView1.SelectedImage < 0 then
    exit;

  bmp := fDBMBitmap.GetTIEBitmap( ImageEnMView1.SelectedImage );
  proc := TImageEnProc.CreateFromBitmap( bmp );
  proc.PreviewsParams := proc.PreviewsParams + [ prppDefaultLockPreview ];
  bChanged := proc.DoPreviews();
  fDBMBitmap.ReleaseBitmap( ImageEnMView1.SelectedImage, bChanged );
  FreeAndNil( proc );
end;