Set TBitmap Empty in true

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.
LVL 1
vterekhAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
MadshiConnect With a Mentor Commented:
"bmp.Assign(nil);" has the desired effect.

Regards, Madshi.
0
 
TOndrejCommented:
See Dormant and FreeImage methods, and their help example.
0
 
TOndrejCommented:
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
 
MadshiCommented:
Well, I took the red pill. This steak is juicy!!   :-)
0
 
vterekhAuthor Commented:
Ok, in that case I will follow the white rabbit :)))
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.