Re: finding the mousecolor in IOS

2012-07-14 Thread Peter M. Brigham
On Jul 13, 2012, at 9:11 AM, Colin Holgate wrote: > One exercise in that book I wrote is about using an image as a color picker. > It uses the same technique as Scott mentioned, only I then set the color of > another graphic to show that it has picked up the right color. > > One thing to double

Re: finding the mousecolor in IOS

2012-07-13 Thread Howard Bornstein
On Fri, Jul 13, 2012 at 6:11 AM, Colin Holgate wrote: > One exercise in that book I wrote is about using an image as a color > picker. It uses the same technique as Scott mentioned, only I then set the > color of another graphic to show that it has picked up the right color. > That's exactly wha

Re: finding the mousecolor in IOS

2012-07-13 Thread Colin Holgate
One exercise in that book I wrote is about using an image as a color picker. It uses the same technique as Scott mentioned, only I then set the color of another graphic to show that it has picked up the right color. One thing to double check, the x and y values you're using, are those from the

Re: finding the mousecolor in IOS

2012-07-12 Thread Howard Bornstein
I haven't had time to pursue any of this yet, but do you think the gamma would explain why I'm getting different values with Scott's routine versus the built-in mouseColor function? Btw, I'm using an imported image that I haven't modified in any way. This is all so I can build my own color picker

Re: finding the mousecolor in IOS

2012-07-12 Thread Howard Bornstein
Ah, I see. Thanks for the clarification. I've been putting on switching to Lion for as long as possible so I haven't seen that problem. I guess I'll have to bite the bullet with Mountain Lion though. On Thu, Jul 12, 2012 at 4:56 PM, Scott Rossi wrote: > Recently, Howard Bornstein wrote: > > >> I

Re: finding the mousecolor in IOS

2012-07-12 Thread Scott Rossi
Recently, Howard Bornstein wrote: >> It seems the mouseColor is not functional on iOS in 5.5.1 (but apparently >> it has been fixed on Lion which is a huge relief). >> > I don't understand this because you are comparing IOS and Lion. MouseColor > already works fine in OSX. Do you mean that if you

Re: finding the mousecolor in IOS

2012-07-12 Thread Scott Rossi
If you're working with an imported or referenced image, it would probably better to strip the gamma from the source image all together, using something like ColorSync Utility or similar -- as mentioned by Tim Bobo -- rather than changing the gamma of the screen. But if you're working with a snapsh

Re: finding the mousecolor in IOS

2012-07-12 Thread Colin Holgate
Try this line before doing the snapshot: set the screengamma to 2.23 LiveCode changes the values in image data depending on the color settings of the screen, and doing a snapshot of the card's graphics is likely to lead to different data. On Jul 12, 2012, at 7:23 PM, Howard Bornstein wrote:

Re: finding the mousecolor in IOS

2012-07-12 Thread Howard Bornstein
On Thu, Jul 12, 2012 at 3:18 PM, Scott Rossi wrote: > Hi Howard: > > It seems the mouseColor is not functional on iOS in 5.5.1 (but apparently > it > has been fixed on Lion which is a huge relief). > I don't understand this because you are comparing IOS and Lion. MouseColor already works fine in

Re: finding the mousecolor in IOS

2012-07-12 Thread Scott Rossi
Hi Howard: It seems the mouseColor is not functional on iOS in 5.5.1 (but apparently it has been fixed on Lion which is a huge relief). That said, if you can work with an image as your color source (ie import a snapshot if needed), you can use the following function as a workaround (watch wrap):

finding the mousecolor in IOS

2012-07-12 Thread Howard Bornstein
I'm designing a an IOS app that makes extensive use of determining "the mousecolor". Everything is working fine in my stack, but when I port it to the simulator (or create the IOS app), the mousecolor only returns 0,0,0 regardless of where the mouse is. I found some early posts from last year disc