473,836 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to draw arrows in PHP using GD function?

Hi folks,
I'm a newbie to doing images and graphics in PHP. I would appreciate
your help in the following:

1. Is there a function to draw arrowed lines in PHP?
2. Is there a way I can label a circle in PHP? Actually for the circle
I am using the imageellipse() function and it works. How do I get the
description inside the circle, i.e, Circle A, Circle B, etc?

Thanks heaps,
Da Walrus

Mar 6 '06 #1
1 4126
Following on from 's message. . .
Hi folks,
I'm a newbie to doing images and graphics in PHP. I would appreciate
your help in the following:

1. Is there a function to draw arrowed lines in PHP?
2. Is there a way I can label a circle in PHP? Actually for the circle
I am using the imageellipse() function and it works. How do I get the
description inside the circle, i.e, Circle A, Circle B, etc?

Thanks heaps,
Da Walrus

Graphics is about manipulating primitives and packaging a bunch in a
parameratized object which can be used in turn as building blocks.

This ng isn't really the right place to discuss graphics methods.
However if you don't get a satisfactory answer then email me for some
java code which you can deconstruct.
--
PETER FOX Not the same since the bottom fell out of the bucket business
pe******@eminen t.demon.co.uk.n ot.this.bit.no. html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.dem on.co.uk>
Mar 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1574
by: Johm | last post by:
How can i remove the built in navigation arrows in the form ? With the help of the wizard i have built customized navigation buttons,to move to the left or to the right,but it is still posible for me to use the arrows in the down left side of the form.This arrows are built in the form and i cannot remove them. Is it possible to remove these arrows from my form and thus to force the user to use ony my navgtion arrows?
12
3497
by: Jim H | last post by:
I have a ListBox hold a list of my custom controls (it's UserControl based control with a couple radio buttons and a checkbox). Everything works and displays the way I expected it to. I can move through the list by dragging the scroll bar and it works fine, but if I try to use the up/down scroll bar buttons or page by clicking above or below the scroll thumb button the list does not scroll. Here's my OnDrawItem for the ListBox: ...
1
1897
by: jrhoads23 | last post by:
Hello, I subclassed my own ListView which supports column sorting. It automatically draws the up/down sort arrows in the column header. The arrows that are used are drawn by me. I noticed that Windows XP systems uses different sort arrows than Windows 2000 and earlier systems. (open Windows Explorer and check them out on the two differnt O/S) I would like my ListView to use the same arrows as the operating system uses. Is there an API...
3
16951
by: Stephen | last post by:
hi, i would like to draw static arrows in the window form. Seems from the posts that there isnt any drawing toolbox. Is there a way of doing it? Pls go step by step, this is the first time i am programming. Wish it was as easy as in Microsoft Word where u can just drag an arrow.... Thanks
2
10342
by: kalp suth via DotNetMonster.com | last post by:
I want to create arrows using lines on a picture in the picture box. On clicking the button "btnShowAll", the image is loaded and the lines drawn. "RGSShowAll()" calls "DrawObjs()" which does the actual drawing work. But after displaying all the arrows in a flick, the arrows disappers. I have debugged and came to know that the "Paint" event of the picturebox is refreshing the image, so the work done on the CreateGraphics created object is...
3
1345
by: Benson Wong | last post by:
I would like to draw a simple flow chart including Textbox for "Process", lines and arrows for "Flow". Any hints? Benson VB2005, XP Pro, .Net 2.0.
9
4035
by: zhaow | last post by:
Hi, All Greetings! I want to develop as appllication that requires a line-drawing function in the blank area between two forms. I have looked up the MSDN, it says that a graphics object need a reference to a control or a form. I guess it means that lines can't be draw on blank area between two forms. Can anybody guarantee this for me? Is there any method can realize this function? I mainly want to draw a line from a button in form1 to...
4
9211
by: hastalavista | last post by:
HI I'm very new to C# and I've got a big project to do in C# for uni until july. I've been trying do draw lines in C# (arrows to be precise). I can draw them allright but once I minimize the program and maximize it again, the arrows dissapear :S. this also happens if I open another program on top of the program I'm creating. Is their a way to correct this? To draw the lines I've been using this piece of code.
12
2111
by: pwiegers | last post by:
Yes, I know, this is sort of commercial.. but how else to get people to, what I think, is a handy online applicaton? I created this app because I hate do document :) (Don't we all?) Sometimes I wanted to make a small diagram to depict what a piece of PHP-code does, a database relationship diagram, or, wel... But to do that in ASCII is hard, and not very much fun to do! So, I created this online app that allows you to draw simple diagrams...
0
9813
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9665
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10835
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10541
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10585
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5645
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5818
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4007
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.