Solved

Graphic Editing

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

803 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