ImageEn, unit iexDBBitmaps |
|
TIEDBMultiBitmap.ReleaseBitmap
Declaration
procedure ReleaseBitmap(idx: Integer; SaveChanges: Boolean);
Description
Releases the bitmap created with
GetBitmap or
GetTIEBitmap method.
If saveChanges then your modifications will be written to the database (TDataset.Edit/Post will be called).
Note: If
Mode = dmRecordFrames, this method does NOT update the database. You will need to call
UpdateDatabaseImage
Parameter | Description |
idx | The image index to release |
saveChanges | If true (default), changes to the bitmap will be written to the database |
// 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;