Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-10-2011, 08:52 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 3
mushtaque87 is on a distinguished road
Unhappy How to Find the CGPoints of an Image

hey all , i need urgent help , i want to place a small flag on a UIImage View..
The coordinates of the image wil be given and the flag image wil place on that coordinate of the image..

Its mostly about showing the floor plan of a venue. and placcing an flag or annotation on that image...
Plz help.

so basically i want the codes for matching the coordinates sent from the server and placing the annotation image on the floor plan image!!!

Last edited by mushtaque87; 03-10-2011 at 08:54 AM.
mushtaque87 is offline   Reply With Quote
Old 03-10-2011, 11:49 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

assuming that when you say "coordinates" you mean just x,y. Where is the problem to add an image over another image at a given x,y?
__________________
dany_dev is offline   Reply With Quote
Old 03-11-2011, 12:15 AM   #3 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 3
mushtaque87 is on a distinguished road
Default

Quote:
Originally Posted by dany88 View Post
assuming that when you say "coordinates" you mean just x,y. Where is the problem to add an image over another image at a given x,y?
no no i want to place a flag image on any given coordiantes from the server, its can be 304,402 or 408,203 , so the combination can be anything , i just want to know that by wht codes i can map the flag image on tht place of the base/floor plan image
mushtaque87 is offline   Reply With Quote
Old 03-11-2011, 12:19 AM   #4 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Code:
yourImage.center = CGPointMake(x,y);
rocotilos is offline   Reply With Quote
Reply

Bookmarks

Tags
annotation, cgpoint, coordinate, image, pixel

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 362
13 members and 349 guests
Absentia, akphyo, apatsufas, BinHex, fredidf, Gaz, gmarro, jeroenkeij, Kirkout, MarkC, mottdog, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0