ImageEn, unit iexDBBitmaps |
|
TIEDBMultiBitmap.AppendImage
Declaration
function AppendImage: Integer;
function AppendImage(Bitmap: TIEBitmap): integer;
function AppendImage(Bitmap: TIEBitmap; Rect: TRect): integer;
function AppendImage(Bitmap : TBitmap): integer;
function AppendImage(MBitmap : TIECustomMultiBitmap);
function AppendImage(Width, Height: Integer; PixelFormat: TIEPixelFormat = ie24RGB): Integer;
function AppendImage(const FileName: String): integer;
function AppendImage(Stream: TStream; FileFormat: TIOFileType = ioUnknown): integer;
Description
Appends a new image at the end of the database and returns the new image position. The table will be positioned at the new record.
Note:
◼If
Mode = dmRecordFrames, this method only adds a frame to the current image and does NOT update the database. You will need to call
UpdateDatabaseImage◼TDataset.Append and TDataset.Post will be called.
if dlgOpenImage.Execute then
fDBMBitmap.AppendImage( dlgOpenImage.Filename );
// Compare the following...
ImageEnView1.IO.LoadFromFile('C:\000.tif');
MBitmap.AppendImage();
MyTable.Edit;
MBitmap.SetImage( -1, ImageEnView1.IEBitmap );
MyTable.Post;
// Which is the same as...
MBitmap.AppendImage( 'C:\000.tif' );
// Append 256 x 256 bitmap
MBitmap.AppendImage( 256, 256, ie24RGB );
// Append a file from the web
MBitmap.AppendImage( 'http://www.imageen.com/graphics/imageen.gif' );
See Also
◼InsertImage◼SetImage