ImageEn, unit iexDBBitmaps |
|
TIEDBMultiBitmap.OnGetSaveParams
Declaration
property OnGetSaveParams: TIEGetSaveParamsEvent;
Description
Occurs when an image is being saved to a blob field, allowing custom parameters to be specified.
Note: This method is not called unless
ImageStorageMode is isEmbeddedBlob.
...
fDBMultiBitmap.OnGetSaveParams := DBMultiBitmapGetSaveParams;
...
procedure Tfmain.DBMultiBitmapGetSaveParams(Sender: TObject; const Filename: string; var Params: TIOParams);
begin
// Use JPEG compression when blob is save to database (Assumes ImageFormat is ioTIFF)
Params.TIFF_Compression := ioTIFF_JPEG;
Params.TIFF_JPEGQuality := 85;
end;
See Also
◼AutoLoad