DelphiFAQ Home Search:

Reducing used GDI resources (use TImageList)

 

commentsThis 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:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.