SetMemoryThresholds example for Delphi

{ Allocate tiled bitmaps when more than 75% of the computer memory is used, or for bitmaps larger than 100MB. }

LEADImage1.SetMemoryThresholds(-25, 100 *1024 * 1024, 0, 0, 0, MEM_TILEDTHRESHOLD + MEM_MAXCONVSIZE );