PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
Old 01-14-2004, 12:07 PM   #1
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
PHP & GD

Howdy folks:

Here is my perdiciment. I have a map for a game I play. In the game, you can use a Sextant to find your x,y cords. I'm trying to make a program that when given the x and y cords will place a star or circle where the cords meet. For ease treat the map as starting at each corner of the map with no border, I can fix that by changing the x,y cords. But I can't seem to find any resources on how to just put an image at a specific cordinate without using a huge program that creates Scatter graphs.

Map: http://mononexo.com/map/map.jpg

Any tips? Snippets?

Thanks,

Matt
MonoNexo is offline   Reply With Quote
Old 01-26-2004, 04:38 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps try something like the following:
PHP Code:
<?php
  $pic 
"filename.jpg"// jpg filename
  
$font 5// can be 1, 2, 3, 4, or 5
  
$xpos 50// zero is leftmost position
  
$ypos 10// zero to topmost position
  
$qual 30// zero (worst) to 100 (best)
  
$symb "*"// symbol to denote x,y point
  
$im imagecreatefromjpeg($pic);
  
$red imagecolorallocate($im,255,0,0);
  
imagestring($im$font$xpos$ypos$symb$red);
  
imagejpeg($im''$qual);
  
imagedestroy($im);
?>
Also, check here for other image functions.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Url part after &amp; is ignored on spider (1.8.9 RC1 and earliers) obottek Bug Tracker 1 08-24-2006 05:52 AM
PHP Version 4.1.2 & pdftotext m2ke External Binaries 1 08-18-2004 08:38 AM
Unicode support & PHP...ironic? viclee8888 How-to Forum 1 04-15-2004 02:51 PM
PHP & PDF wsseibert Coding & Tutorials 1 02-05-2004 04:39 PM
PhpDig & PHP-Nuke j-ortega How-to Forum 4 11-17-2003 12:28 AM


All times are GMT -8. The time now is 03:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.