Solved

Set TBitmap Empty in true

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now