Solved

Graphic Editing

Posted on 1997-05-12
5
248 Views
Last Modified: 2012-05-04
I know that delphi 2 has a built in graphic editor. But I
want to be able to edit graphics within an application.
How do I do this?

Thanks - Joe Wirtz
0
Comment
Question by:jwirtz
[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
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
CFantin earned 100 total points
ID: 1336149
You can use the Delphi forms canvas or the TImage canvas for drawing.
Some of the built in delphi drawing functions are:

MoveTo - The MoveTo method changes the current drawing position to the coordinates passed in X and Y.

LineTo - The LineTo method draws a line on the canvas from the current drawing position (specified by the
PenPos property) to the point specified by X and Y and sets the pen position to (X, Y).

Rectangle - The Rectangle method draws a rectangle on the canvas with its upper left corner at the point (X1, Y1)
and its lower right corner at the point (X2, Y2).

When you draw delphi uses the current pen, brush and font properties.

If you look at the TCanvas help it will give a complete list of all of the Drawing functions.

0
 

Author Comment

by:jwirtz
ID: 1336150
What I'm really looking for is a component that works just
like the built in graphic editor under 'tools' in D2. My
real intent is to edit icons from an application.

Thanks - Joe
0
 

Expert Comment

by:lgc5800
ID: 1336151
I have programming two program in DELPHI 16 bits. For editing graphics in a program you must use the Timage component.
I have a button for a graphic preview as Corel Draw.
There is not enough place here for the demo.
Contact my EMAIL for more info. I can send you the complete source of this program.
0
 

Author Comment

by:jwirtz
ID: 1336152
lgc580 I would love to see your source for this but I can't
find out how to get your email address from this forum.

Can you email it to
joew@hm.ultranet.com

Thanks
0
 

Expert Comment

by:lgc5800
ID: 1336153
Sorry joe,
here is my E-mail :

sncb.cim.fl@skynet.be

So, before 06.97, i send you this source program via E-mail
so long

Eric(Belgium).
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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