C++ Builder

Moderators: Lundin
Number of threads: 518
Number of posts: 1158

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Clear a TImage Posted by gonzalipto on 2 Mar 2009 at 10:42 AM
Hi

I have a TImage in my form where I can open an image in the TPicture property, what I need to do is to clear de TImage when there is an Image already asociated to the Tpicture property, so the TImage become Empty..

Can someone help me to do it, because there is not any function like

Image1->Clear() or Image1->Picture->Clear()

Thanks
Report
Re: Clear a TImage Posted by PiSymbol on 4 Apr 2009 at 5:22 AM
Maybe the following options will work:

Image1->Picture = NULL;
Image1->Picture->Graphic = NULL;
Image1->Picture->Bitmap = NULL;



Report
Re: Clear a TImage Posted by bilderbikkel on 2 May 2009 at 3:51 AM
If you want to set all pixel colors to the same color (black, for example), follow this link http://richelbilderbeek.nl/CppPaint.htm

See ya, Bilderbikkel
Report
Re: Clear a TImage Posted by gangsani on 25 Aug 2009 at 7:48 PM
--> Image1->Visible = 0; // image disappear

--> Image1->Visible = 1; // image appear



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.