Solved

Clearing an image box

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
When I am typing into a TEdit last word repeats 7 175
Delphi inherited method 6 86
how to resize animated Gif image in delphi ? 1 61
Delphi: making a BW image transparent 10 136
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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