Solved

How can i print varios lines in a Canvas of form...

Posted on 1999-01-28
1
125 Views
Last Modified: 2010-05-18
How can i print varios lines in a Canvas of form for example:

i have the form, i determine the center of the form then the user want draw an polygon regular of 5 sides and with the lines drawed stared of the point center of the polygon to the vertices
Any idea?

atte kok77




 
0
Comment
Question by:jamiguel
1 Comment
 
LVL 17

Accepted Solution

by:
inthe earned 0 total points
ID: 1363739
hi there ,
use the tpoint like so:
procedure TForm1.Button1Click(Sender: TObject);
var
    pts : array[0..3] of TPoint;
begin
    pts[0] := Point(100,100);
    pts[1] := Point(150,300);
    pts[2] := Point(200, 50);
    pts[3] := Point(250, 175);
PolyBezier(Canvas.Handle, pts, 4);
end;

this would draw a curve but just add amount of points to array
and plot your polygon with the starting point being the center of the canvas

Regards Barry.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

20 Experts available now in Live!

Get 1:1 Help Now