Solved

Graphic Editing

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

690 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