Solved

Clearing an image box

Posted on 2000-02-26
2
162 Views
Last Modified: 2010-04-04
Hi,

Sorry the point value is so low, but I'm running out of points.  :)

I need some code to clear an imagebox at run time.

0
Comment
Question by:fibdev
2 Comments
 

Accepted Solution

by:
hobbit123 earned 25 total points
ID: 2561074
Here goes,

MyImage.Canvas.Pen.Color:=clWhite;
MyImage.Canvas.Brush.Color:=clWhite;
MyImage.Canvas.Rectangle(0,0,MyImage.Width,MyImage.Height);

MyImage is a TImage to be cleared;
Replace clWhite with a color you need. To make an empty, black image, you should use clBlack, etc.


                   Hobbit123
0
 
LVL 3

Author Comment

by:fibdev
ID: 2561103
Thanks Hobbit
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 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