Solved

Set TBitmap Empty in true

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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