Solved

Clearing an image box

Posted on 2000-02-26
2
159 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 74
Dev Express grid collapse 2 45
tidtcpserver connection lost handle 2 84
enhance the following code 3 31
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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