 |
 |
|
 |
12-13-2008, 02:32 PM
|
#1 (permalink)
|
|
Registered Member
Join Date: Dec 2008
Posts: 34
|
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, 02:49 PM
|
#2 (permalink)
|
|
New Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
|
|
|
|
12-13-2008, 03:10 PM
|
#3 (permalink)
|
|
Registered Member
Join Date: Dec 2008
Posts: 34
|
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, 03:13 PM
|
#4 (permalink)
|
|
New Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
|
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, 03:23 PM
|
#5 (permalink)
|
|
Registered Member
Join Date: Dec 2008
Posts: 34
|
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: 598 |
| 53 members and 545 guests |
| alt-088, applezinga, Bisbo, Blitfast, buttonhead, ChrisMayer, davidloew, demiandenker, Desdichado, DevSdk, Digiguy, Dorald, dre, fiftysixty, Flexicoder, frankie_121, frankmarco_keyw, freakybee, garyk1968, harrytheshark, hatembr, HemiMG, iBud, iGrump, iisword, iSdkDev, Johanovski, Kalimba, KennyChong, khonsou, Maechi, masc2279, mirkosarra, Mopedhead, MottaJM, msudan, Nuncha, Ocramj, patrickoshaughnessey, pengcognito, pgrsv, rjgrune, Roi, scotopia, smasher, Tambourin, TechnoMaster, tidyguy, toughturtle, vikinara, Webkuh, yeohchan, _nivek |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,369
Threads: 39,161
Posts: 171,674
Top Poster: smasher (2,578)
|
| Welcome to our newest member, salvador92reed |
|