SetMemoryThresholds example for C++ 5.0 and later
/* Allocate tiled bitmaps when more than 75% of the computer memory is used, or for bitmaps larger than 100MB. */
m_RasterView.GetRaster().SetMemoryTiledThreshold(-25);
m_RasterView.GetRaster().SetMaxConventionalSize(1024 * 102400);
m_RasterView.GetRaster().SetTiledBitmapsSize (0);
m_RasterView.GetRaster().SetMemoryConventionalTile(0);
m_RasterView.GetRaster().SetMemoryConventionalBuffers(0);
m_RasterView.GetRaster().SetMemoryFlags (MEMORY_TILED_THRESHOLD | MEMORY_MAX_CONV_SIZE);
m_RasterView.GetRaster().SetMemoryThresholds();