?
Solved

Clearing an image box

Posted on 2000-02-26
2
Medium Priority
?
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
hobbit123 earned 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

800 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