Programming C# C++ (7) Delphi (617) .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) Java (8) JavaScript (31) perl (9) php (4) VBScript (1) Visual Basic (1)
Exchange Links About this site Links to us 
|
Reducing used GDI resources (use TImageList)
This article has not been rated yet. After reading, feel free to leave comments and rate it.
You need to reduce the amount of GDI resources used by your application?
Check out this:
Each and every TBitmap/TIcon/TImage you use, consumes one handle. And Windows (Win95, 98 and NT) can only handle a restricted amount of handles. The %-resources show you how many percent of the handles are not used yet.
So you should use TImageList. This is a bitmap/icon container, in which you can put all images/icons that have the same size and color depth. And every TImageList consumes only one handle.
For other ways to save memory, take a look at the 'See Also' section.
Comments:
|