?
Solved

Set TBitmap Empty in true

Posted on 2001-09-16
5
Medium Priority
?
1,953 Views
Last Modified: 2012-06-21
Hi
When TBitmaap doesn't contain any image its Empty property is set to True. Is it possible to clear TBitmap to delete previous loaded bmp (Empty is False) and set back Empty property to True?

Vasily.
0
Comment
Question by:vterekh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:TOndrej
ID: 6486756
See Dormant and FreeImage methods, and their help example.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 120 total points
ID: 6486767
"bmp.Assign(nil);" has the desired effect.

Regards, Madshi.
0
 
LVL 8

Expert Comment

by:TOndrej
ID: 6486798
Correct, Madshi's suggestion was much better... :-)
How could I forget Assign(nil)?
Why oh why didn't I take the *blue* pill?
:-)
Wish you a nice Monday morning...
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6486841
Well, I took the red pill. This steak is juicy!!   :-)
0
 
LVL 1

Author Comment

by:vterekh
ID: 6486890
Ok, in that case I will follow the white rabbit :)))
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question