Color swapping problem
h at FlexibleLearning.com
Sun Apr 12 13:04:27 CDT 2009
Thanks for the replies. Looks like a bug on Windows only, then, arrising in
v3.0. Although the test was an opaque field (for simplicity), the actual
situation is a group of mixed fields and colored graphics with overlayering
that may or may not be transparent. Any anti-aliased text is also very
poorly rendered in the snapshot unless taken of the window (which then
potentially involve intruding screen objects that I wish to avoid).
Now Bugzilla ref #7946.
I can confirm it on Windows XP as well.
Your recipe worked as expected... all colors in the png were true to
the colors set in the field.
can confirm this with Rev 3.5 GM1 under Windows Vista.
-------- Original Message --------
Subject: Color swapping problem (11-Apr-2009 19:32)
From: Hugh Senior <h at FlexibleLearning.com>
To: runrev260805 at m-r-d.de
> Can anyone confirm this?
> Create a field called "MyText" with 3 lines of coloured text...
> 1. Red text
> 2. Blue text
> 3. Yellow text
> 4. Green text
> In a button...
> on mouseUp
> export snapshot from fld "MyText" to imgVar as PNG
> set the clipboardData["image"] to imgVar
> end mouseUp
> Now do a Ctrl.V paste to see the image in the stack.
> Green text is green, but red text is blue, blue text is red, and yellow
> is magenta. Looks like the red and blue got swapped in the engine. Same
> color swap happens with JPEG format. Try GIF and it fails to produce
> anything except garbage.
> All the above also fail with export snapshot to file.
> This in Win XP, but I suspect Macs are similarly affected.
More information about the use-livecode