Hi:
I want to use TImageEnMView to scan multiple pages and store them in the data,and my code:
DBBitmap: TIEDBBitmap;
DBMultiBitmap: TIEDBMultiBitmap;
form create:
DBMultiBitmap := TIEDBMultiBitmap.Create(dsImages, 'Image', 'FileName');
DBMultiBitmap.Mode := dmAllRecords;
ImageEnMView.SetExternalMBitmap(DBMultiBitmap);
DBMultiBitmap.FollowDBCursor := True;
DBBitmap := TIEDBBitmap.Create(dsImages, 'Image', 'FileName');
imageenview.SetExternalBitmap(DBBitmap);
procedure TFrmScan.ImageEnMViewAcquireBitmap(Sender: TObject;
ABitmap: TIEBitmap; DpiX, DpiY: Integer; var Handled: Boolean);
begin
ABitmap.Rotate(180);
DBMultiBitmap.AppendImage(ABitmap);
end;
After the scan, there are a lot of blank data stored in the database.