Victor, it's pretty simple.  There are a variety of drawing methods to draw 
lines and more complex shapes.  Take a look at the delphi help.  I searched the 
index for "Line" and found this:

Applies to

TCanvas3D component

Declaration
procedure Line (X0,Y0,X1,Y1:Integer); virtual; abstract;
Description
Draws line between end co-ordinates using current Pen

jhg



-----Original Message-----
From: advanced_delphi@yahoogroups.com on behalf of Victor Fraenckel
Sent: Wed 11/21/2007 7:38 AM
To: Delphi Advanced; Delphi Programmers
Subject: [advanced_delphi] Help with graphics
 
I am a long time Delphi programmer currently using D7. I have never done 
any graphic type programming and could use a little help getting started.

I wish to write a small app for a friend that is not math inclined. She 
is an artist and has a need to cut mattes for her pictures. She owns a 
decent matte cutter. The problem is like this:

She wants to cut a rectangular matte whose outside dimensions, say are 
14 inches by 10 inches. Her painting is 12 inches by 8 inches. She must 
set her matte cutter to the width of the difference between the, say, 14 
inches and 12 inches = 2 inches divided by 2 = 1 inches and the 
difference between 10 inches and 8 inches = 2 inches divided by 2 = 1 
inch. This would give a centered cut out for the painting and have 1 
inch borders on all sides. This is simple enough to do in your head, but 
often she does not have nice round numbers to work with and must deal in 
fractions (1/8ths or 1/16ths) which is difficult for her to do.

I thought I could write her a short app which allowed her to enter the 
data and then display the proper measurements by drawing a rectangle for 
the frame and another one for the cut-out. Then she would have the 
correct numbers for setting her matte cutter and be able to visualize 
what it would all look like.

I am not sure how to go about drawing the nested rectangles. I do not 
know how to draw anything on a form.

Any enlightenment will be appreciated.

Vic
-- 

*____________________________________________________________________________________________*

*Victor Fraenckel
KC2GUI
victorf ATSIGN windreader DOT com**
*



<<winmail.dat>>

Reply via email to