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

View Single Post
Old 04-27-2010, 01:12 PM   #44 (permalink)
qwerty2k
Registered Member
 
Join Date: Mar 2010
Posts: 6
qwerty2k is on a distinguished road
Default

Hi guys,

bit of a newb and just playing around and am looking for some help if you don't mind?

Basically i understand everything thats been posted etc, quick question though: how would i go about accessing the rgb values for a particular X and Y co-ordinate?

i found: 4*((imageWidth*round(Y))+round(X))

but i can't seem to get it to work, adjusting the X co-ordinate works fine but adjusting the Y co-ordinate value seems to pick a pixel that is nowhere near where i wanted?

am i along the right lines with the above formula or am i well off?
qwerty2k is offline   Reply With Quote
 

» Advertisements
» Online Users: 366
13 members and 353 guests
bignoggins, chemistry, Domele, Duncan C, firecall, HowEver, ilmman, jaychoupham, krisk, n00b, Paul Slocum, SuperDietGenius, timle8n1
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,559
Threads: 94,079
Posts: 402,742
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Jenfrag
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.