Solved

Graphic Editing

Posted on 1997-05-12
5
244 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
  • 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

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

Title # Comments Views Activity
TVirtualStringTree  search using TEdit 7 106
Delphi XE2 application frozen on Windows 10 10 277
Mydac connection data base issue 3 139
JAudiorecorder record freezing the app 29 60
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

17 Experts available now in Live!

Get 1:1 Help Now