Solved

Clearing an image box

Posted on 2000-02-26
2
157 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
Comment Utility
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
Comment Utility
Thanks Hobbit
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now