12-13-2008, 03:32 PM
#1 (permalink )
Registered Member
Join Date: Dec 2008
Posts: 44
RGB for a given X,Y Coordinate
Hello,
Let's say that I have a UIImageView. Is there a way to get the RGB color for a given X,Y coordinate inside of it?
Thank You.
12-13-2008, 03:49 PM
#2 (permalink )
Registered Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,122
12-13-2008, 04:10 PM
#3 (permalink )
Registered Member
Join Date: Dec 2008
Posts: 44
Thank you for replying.
Yea, I saw this and went through it. It wasn't give me consistent results.
I'll go through it again.
If you can think of anything else, I would appreciate it.
12-13-2008, 04:13 PM
#4 (permalink )
Registered Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,122
What were the inconsistent results?
Your code needs to handle all the possible color layouts like RGBA, ARGB, 12 bit, 24 bit, 32 bit, LSB, MSB, etc.
12-13-2008, 04:23 PM
#5 (permalink )
Registered Member
Join Date: Dec 2008
Posts: 44
I had a little test application with a white .png image with black borders. At times, when I clicked on the black border, the RGB was not 0,0,0 and/or when I clicked in the white area, it was not 255, 255, 255.
Thanks.
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 927
28 members and 899 guests
alapimba , armmzz , at0m87 , Azuresilver , brush51 , cacao , Desert Diva , Erwin , eviolet4 , fiftysixty , ghz.rai , headkaze , LEARN2MAKE , mavericki , mikeirvingapps , pratikchandak , quycao , ramonpadillas , rcheguraju , Remzuidferdenz , richardpaul , Shimi256 , sneaky , SteveLeviathan , ziocleto , Zuningo
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,311
Threads: 89,035
Posts: 379,819
Top Poster: BrianSlick (7,086)
Welcome to our newest member, ramonpadillas