Solved

Graphic Editing

Posted on 1997-05-12
5
243 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

12 Experts available now in Live!

Get 1:1 Help Now