Solved

Set TBitmap Empty in true

Posted on 2001-09-16
5
1,917 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 30 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

718 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