AW: Is RGB on Mac something else as RGB on windows?

2014-09-15 Thread Tiemo Hollmann TB
Bill, I have no idea, but doesn't the unicode handling change come with 6.7?
I am on LC 6.5.2
Tiemo


 -Ursprüngliche Nachricht-
 Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
Auftrag
 von William Prothero
 Gesendet: Freitag, 12. September 2014 23:42
 An: Use-livecode Use-livecode
 Betreff: Re: Is RGB on Mac something else as RGB on windows?
 
 Tiemo:
 I wonder if this has something to do with the fact that byte operations
rather
 than charToNum operations are supported now, and unicode gets involved in
 charToNum operations.
 Bill
 
 On Sep 12, 2014, at 10:09 AM, Tiemo Hollmann TB toolb...@kestner.de
wrote:
 
  Some more testing:
  The mousecolor returns the same RGB on Mac and Win. I need this for
  comparing each pixel of an imageData with this mousecolor.
  But when looping through the imageData of an image, the charToNum(char
  x of
  tImageData) returns a different value on Mac and Win.
  Up to now, it seems that the Mac value is always 30 less than on Win,
  same for R,G and B If this keeps constant on further testing, I can
  manipulate the values on Mac by this constant. But enough for today.
  Tiemo
 
 
 
 
  -Ursprüngliche Nachricht-
  Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
  Auftrag
  von Tiemo Hollmann TB
  Gesendet: Freitag, 12. September 2014 18:32
  An: 'How to use LiveCode'
  Betreff: AW: Is RGB on Mac something else as RGB on windows?
 
  Hi Trevor,
 
  hmm, might be we are experiencing the same issue. The more I am
  testing,
  the
  more I get confused what happens with the RGB on Mac.
  Because I never would have thought that there could be an issue
  related to this between windows and Mac this issue hits me at the
  latest stage in my development process at the finishing tests close
  before release. Probably
  I
  have to suspend my whole release plan now.
  Tiemo
 
 
  -Ursprüngliche Nachricht-
  Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
  Auftrag
  von Trevor DeVore
  Gesendet: Freitag, 12. September 2014 16:29
  An: How to use LiveCode
  Betreff: Re: Is RGB on Mac something else as RGB on windows?
 
  On Fri, Sep 12, 2014 at 8:29 AM, Tiemo Hollmann TB
  toolb...@kestner.de
  wrote:
 
  I have an application, where I manipulate an image. I exchange a
  specified RGB color by another value. I developed this app on
  windows and everything works fine. Now at final testing my function
  seems to be broken, because the same image (a screenshot taken from
  a video) seems to have other RGB values on a Mac, so that the
  exchange doesen't work anymore on a Mac.
 
  I tested to create a png with photoshop on Windows with a blue
  color 100,150,200. Opening this png on my Mac and picking the color
  it gives
  me:
  83,131,185. Isn't RGB = RGB on different platforms? That the same
  RGB might display different on different monitors is clear, but a
  different RGB value?
 
 
  Perhaps you are seeing the issue described in this bug report?
 
  http://quality.runrev.com/show_bug.cgi?id=13208
 
  It doesn't look like LiveCode on OS X handles color profiles
  properly when loading image files.
 
  --
  Trevor DeVore
  ScreenSteps
  www.screensteps.com-www.clarify-it.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
 
 
 ___
 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


AW: AW: Is RGB on Mac something else as RGB on windows?

2014-09-15 Thread Tiemo Hollmann TB
Hi Jaccque,

in my case the result of a jpg and png screenshot is the same. On Mac I
always have to add 30 to the charToNum(char x of tImageData) to get the same
result as on Windows.
I hope this really is a constant and not depending of any system or
monitor settings, what could hit me on different customer machines.

Tiemo


 -Ursprüngliche Nachricht-
 Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
Auftrag
 von J. Landman Gay
 Gesendet: Freitag, 12. September 2014 20:05
 An: How to use LiveCode
 Betreff: Re: AW: Is RGB on Mac something else as RGB on windows?
 
 On 9/12/2014, 11:32 AM, Tiemo Hollmann TB wrote:
  The more I am testing, the
  more I get confused what happens with the RGB on Mac.
 
 Does the problem exist if the images are jpg instead of png? Can you
change
 your images to jpg? I've seen the problem with png images, and since I
didn't
 need to match exact RGB, I only needed a visual match, changing the
 screengamma on a Mac was enough to fix it. I did this:
 
 on setScreenGamma
if the platform = macOS then
  set the screengamma to 1.7
else
  set the screengamma to 2.23
end if
 end setScreenGamma
 
 --
 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


AW: Is RGB on Mac something else as RGB on windows?

2014-09-12 Thread Tiemo Hollmann TB
Hi Trevor,

hmm, might be we are experiencing the same issue. The more I am testing, the
more I get confused what happens with the RGB on Mac.
Because I never would have thought that there could be an issue related to
this between windows and Mac this issue hits me at the latest stage in my
development process at the finishing tests close before release. Probably I
have to suspend my whole release plan now.
Tiemo
 

 -Ursprüngliche Nachricht-
 Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
Auftrag
 von Trevor DeVore
 Gesendet: Freitag, 12. September 2014 16:29
 An: How to use LiveCode
 Betreff: Re: Is RGB on Mac something else as RGB on windows?
 
 On Fri, Sep 12, 2014 at 8:29 AM, Tiemo Hollmann TB toolb...@kestner.de
 wrote:
 
  I have an application, where I manipulate an image. I exchange a
  specified RGB color by another value. I developed this app on windows
  and everything works fine. Now at final testing my function seems to
  be broken, because the same image (a screenshot taken from a video)
  seems to have other RGB values on a Mac, so that the exchange doesen't
  work anymore on a Mac.
 
  I tested to create a png with photoshop on Windows with a blue color
  100,150,200. Opening this png on my Mac and picking the color it gives
me:
  83,131,185. Isn't RGB = RGB on different platforms? That the same RGB
  might display different on different monitors is clear, but a
  different RGB value?
 
 
 Perhaps you are seeing the issue described in this bug report?
 
 http://quality.runrev.com/show_bug.cgi?id=13208
 
 It doesn't look like LiveCode on OS X handles color profiles properly when
 loading image files.
 
 --
 Trevor DeVore
 ScreenSteps
 www.screensteps.com-www.clarify-it.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


AW: Is RGB on Mac something else as RGB on windows?

2014-09-12 Thread Tiemo Hollmann TB
Some more testing:
The mousecolor returns the same RGB on Mac and Win. I need this for
comparing each pixel of an imageData with this mousecolor.
But when looping through the imageData of an image, the charToNum(char x of
tImageData) returns a different value on Mac and Win.
Up to now, it seems that the Mac value is always 30 less than on Win, same
for R,G and B
If this keeps constant on further testing, I can manipulate the values on
Mac by this constant. But enough for today.
Tiemo




 -Ursprüngliche Nachricht-
 Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
Auftrag
 von Tiemo Hollmann TB
 Gesendet: Freitag, 12. September 2014 18:32
 An: 'How to use LiveCode'
 Betreff: AW: Is RGB on Mac something else as RGB on windows?
 
 Hi Trevor,
 
 hmm, might be we are experiencing the same issue. The more I am testing,
the
 more I get confused what happens with the RGB on Mac.
 Because I never would have thought that there could be an issue related to
 this between windows and Mac this issue hits me at the latest stage in my
 development process at the finishing tests close before release. Probably
I
 have to suspend my whole release plan now.
 Tiemo
 
 
  -Ursprüngliche Nachricht-
  Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
 Auftrag
  von Trevor DeVore
  Gesendet: Freitag, 12. September 2014 16:29
  An: How to use LiveCode
  Betreff: Re: Is RGB on Mac something else as RGB on windows?
 
  On Fri, Sep 12, 2014 at 8:29 AM, Tiemo Hollmann TB
  toolb...@kestner.de
  wrote:
 
   I have an application, where I manipulate an image. I exchange a
   specified RGB color by another value. I developed this app on
   windows and everything works fine. Now at final testing my function
   seems to be broken, because the same image (a screenshot taken from
   a video) seems to have other RGB values on a Mac, so that the
   exchange doesen't work anymore on a Mac.
  
   I tested to create a png with photoshop on Windows with a blue color
   100,150,200. Opening this png on my Mac and picking the color it
   gives
 me:
   83,131,185. Isn't RGB = RGB on different platforms? That the same
   RGB might display different on different monitors is clear, but a
   different RGB value?
  
 
  Perhaps you are seeing the issue described in this bug report?
 
  http://quality.runrev.com/show_bug.cgi?id=13208
 
  It doesn't look like LiveCode on OS X handles color profiles properly
  when loading image files.
 
  --
  Trevor DeVore
  ScreenSteps
  www.screensteps.com-www.clarify-it.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: AW: Is RGB on Mac something else as RGB on windows?

2014-09-12 Thread J. Landman Gay

On 9/12/2014, 11:32 AM, Tiemo Hollmann TB wrote:

The more I am testing, the
more I get confused what happens with the RGB on Mac.


Does the problem exist if the images are jpg instead of png? Can you 
change your images to jpg? I've seen the problem with png images, and 
since I didn't need to match exact RGB, I only needed a visual match, 
changing the screengamma on a Mac was enough to fix it. I did this:


on setScreenGamma
  if the platform = macOS then
set the screengamma to 1.7
  else
set the screengamma to 2.23
  end if
end setScreenGamma

--
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