Re: need some RGB bug tester
Hi Tiemo, tested with LC7.0RC1 on MacOSX10.6.8 and have the same RGB triplet you got on your mac: 82,130,188 I used put byteToNum(char 8442 of tImageData) comma byteToNum(char 8443 of tImageData) comma byteToNum(char 8444 of tImageData) charToNum is deprecated in 7.0 for binary data. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/need-some-RGB-bug-tester-tp4683264p4683265.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some RGB bug tester
Tiemo, donĀ“t know if this is of some help for you, but if i open the image in an browser and compare it to the one in the LC stack on Mac then i can see that the color of the image in LC is not the same as the color of the image in the browser. The LC one seems darker. If i use the loupe of the Color selection dialog on Mac and select the image in Browser i can see values similar to the ones you can see on Windows. Doing the same with the LC image i can see values similar to the ones LC is reporting back. So LC is seems to change the image in some way on Mac OS X. Regards, Matthias Am 15.09.2014 um 10:38 schrieb Tiemo Hollmann TB toolb...@kestner.de: Hi, I am looking for some guys, who could verify my different RGB results on Win / Mac. Please create a stack and put the following script into a button and save the stack: on mouseUp create img foo set the filename of img foo to foo.png put the imageData of img foo into tImageData put chartonum(char 8442 of tImageData) comma chartonum(char 8443 of tImageData) comma chartonum(char 8444 of tImageData) -- a pixel some somewhere in the middle end mouseUp Please download the following test picture: www.kestner.de/material/foo.png and put it into the same folder as your test stack. Its just a blue. Running the script with LC 6.5.2 on my Windows 7 machine it outputs the following RGB: 99,150,200. Same done on my Mac OS X 10.9 it results: 82,130,188. In this example the difference is only about 20 on each RGB value. On other tests I had constant 30. Can you verify this? Do you get different results with different LC versions? Thanks for any tests Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some RGB bug tester
Hi Tiemo On Windows 7 I get 99,150,200 with LC 6.6.2 and LC 7.0.0(rc1) - and on Mavericks I get 82,130,188 with LC 6.6.3 and LC 7.0.0(rc1) - please note both tests with LC 7.0.0 used bytetonum instead of chartonum So it increasingly looks like it is OS related issue... Dave - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/need-some-RGB-bug-tester-tp4683264p4683269.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some RGB bug tester
This is due to the different screen gamma settings on Mac. It affects the appearance but doesn't change the actual bitmap data. The screen gamma can be set by the. user, and the default setting on Mac is different from the default on Windows. I had thought it was the gamma setting that was causing the problem but now I think Bernd is right and byteToChar is the answer. On September 15, 2014 6:29:17 AM CDT, Matthias Rebbe | M-R-D matthias_livecode_150...@m-r-d.de wrote: If i use the loupe of the Color selection dialog on Mac and select the image in Browser i can see values similar to the ones you can see on Windows. Doing the same with the LC image i can see values similar to the ones LC is reporting back. So LC is seems to change the image in some way on Mac OS X -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some RGB bug tester
I tested only on Mac and can see a difference when opening the image in Safari on Mac and in LC on Mac. The image in LC is definitely a little bit darker than the one in Safari on Mac. And the loupe tool of the color select dialog on mac shows different values when selecting the color of the image in the browser and in LC. Matthias Am 15.09.2014 um 18:45 schrieb J. Landman Gay jac...@hyperactivesw.com: This is due to the different screen gamma settings on Mac. It affects the appearance but doesn't change the actual bitmap data. The screen gamma can be set by the. user, and the default setting on Mac is different from the default on Windows. I had thought it was the gamma setting that was causing the problem but now I think Bernd is right and byteToChar is the answer. On September 15, 2014 6:29:17 AM CDT, Matthias Rebbe | M-R-D matthias_livecode_150...@m-r-d.de wrote: If i use the loupe of the Color selection dialog on Mac and select the image in Browser i can see values similar to the ones you can see on Windows. Doing the same with the LC image i can see values similar to the ones LC is reporting back. So LC is seems to change the image in some way on Mac OS X -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some RGB bug tester
Hi, I am not well up on colour but have dabbled with NSColor in Cocoa. There are numerous methods for creating an NSColor: Creating an NSColor Object from Component Values + colorWithCalibratedHue:saturation:brightness:alpha: + colorWithCalibratedRed:green:blue:alpha: + colorWithCalibratedWhite:alpha: + colorWithCatalogName:colorName: + colorWithDeviceCyan:magenta:yellow:black:alpha: + colorWithDeviceHue:saturation:brightness:alpha: + colorWithDeviceRed:green:blue:alpha: + colorWithDeviceWhite:alpha: + colorWithCIColor: + colorWithColorSpace:components:count: + colorWithSRGBRed:green:blue:alpha: + colorWithGenericGamma22White:alpha: + colorWithHue:saturation:brightness:alpha: + colorWithRed:green:blue:alpha: + colorWithWhite:alpha: Could it be that LiveCode is using the incorrect method of determining/obtaining the colour. If you wish to read up on NSColor follow this link: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html All the best and good luck. Terry On 15 Sep 2014, at 18:35, Matthias Rebbe | M-R-D matthias_livecode_150...@m-r-d.de wrote: I tested only on Mac and can see a difference when opening the image in Safari on Mac and in LC on Mac. The image in LC is definitely a little bit darker than the one in Safari on Mac. And the loupe tool of the color select dialog on mac shows different values when selecting the color of the image in the browser and in LC. Matthias Am 15.09.2014 um 18:45 schrieb J. Landman Gay jac...@hyperactivesw.com: This is due to the different screen gamma settings on Mac. It affects the appearance but doesn't change the actual bitmap data. The screen gamma can be set by the. user, and the default setting on Mac is different from the default on Windows. I had thought it was the gamma setting that was causing the problem but now I think Bernd is right and byteToChar is the answer. On September 15, 2014 6:29:17 AM CDT, Matthias Rebbe | M-R-D matthias_livecode_150...@m-r-d.de wrote: If i use the loupe of the Color selection dialog on Mac and select the image in Browser i can see values similar to the ones you can see on Windows. Doing the same with the LC image i can see values similar to the ones LC is reporting back. So LC is seems to change the image in some way on Mac OS X -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some RGB bug tester
Also you may wish to read this which also may help: Introduction to Color Programming Topics for Cocoa https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/DrawColor/DrawColor.html#//apple_ref/doc/uid/1082i All the best Terry On 15 Sep 2014, at 19:37, Terence Heaford t.heaf...@btinternet.com wrote: Hi, I am not well up on colour but have dabbled with NSColor in Cocoa. There are numerous methods for creating an NSColor: Creating an NSColor Object from Component Values + colorWithCalibratedHue:saturation:brightness:alpha: + colorWithCalibratedRed:green:blue:alpha: + colorWithCalibratedWhite:alpha: + colorWithCatalogName:colorName: + colorWithDeviceCyan:magenta:yellow:black:alpha: + colorWithDeviceHue:saturation:brightness:alpha: + colorWithDeviceRed:green:blue:alpha: + colorWithDeviceWhite:alpha: + colorWithCIColor: + colorWithColorSpace:components:count: + colorWithSRGBRed:green:blue:alpha: + colorWithGenericGamma22White:alpha: + colorWithHue:saturation:brightness:alpha: + colorWithRed:green:blue:alpha: + colorWithWhite:alpha: Could it be that LiveCode is using the incorrect method of determining/obtaining the colour. If you wish to read up on NSColor follow this link: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html All the best and good luck. Terry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode