Solved

Graphic CANVAS Clear

Posted on 2000-04-03
3
295 Views
Last Modified: 2009-07-29
I would like to use Image1->Canvas to draw many poly lines but don't know how to Clear as fas as I could.I must draw white polygon to clear it.is it faster way how clear Canvas.
if you know another faster way to drawing poly lines.please write me.
DirectX is fine but I don't understand it.
0
Comment
Question by:hlava
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 50 total points
ID: 2680611
Simple use FillRect. Code may be as :
TRect Rect(Image1->left,...);
Image1->Canvas->FillRect(&Rect);
I hope, it helps. Alex
0
 

Author Comment

by:hlava
ID: 2682713
Yes it runs.
But same slow as polygons.
do you know another way how fast draw?
Do you know sites about programming basic DirectDraw for stupid beginers as me?
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 2683348
I don't know more faster way.
About DirectX: see free control DelphiX
or shareware www.bcb-tools.com
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

770 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