代码说明:
"This component came about because I wanted to display 4000 x 4000 x 256 colour bitmaps (about 16MB in size). Using a TBitmap and a TImage took ages to load the images as a whole load of disc-swap file activity took place. The answer was to use a memory mapped file and the StretchDIBits API call which takes a memory pointer to the bitmap data, and doesn't realise (of course) that it's a memory mapped file. Load times and resource used drastically reduced".
显示分辨率4000 x 4000 x 256的位图
【立即下载】
|