ImageEn, unit iexBitmaps

TIEBitmap.MinFileSize

TIEBitmap.MinFileSize


Declaration

property MinFileSize: int64;


Description

Specifies the minimum memory needed by the image to allow use of memory mapped file.
If the memory needed by the image is less than MinFileSize, the image will be stored in memory (or if the Location is ieFile).

If the global setting DefMinFileSize = -1, the value of MinFileSize is used.
If the global setting DefMinFileSize > -1, the value of MinFileSize is ignored.

Note: Value represents the size of the image in memory in bytes, not file size,

Default: 90% of available free memory


Example

// Make current bitmap use file storage if image is larger than 1MB
IEGlobalSettings().DefMinFileSize := -1;
MyBMP.MinFileSize := 1 * 1024 * 1024;

// Make all bitmaps use file storage for images larger than 10MB
IEGlobalSettings().DefMinFileSize := 10 * 1024 * 1024;


See Also

Location
DefMinFileSize