Page 1 of 1

import snapshot gives gray images

Posted: Mon Nov 29, 2010 11:00 am
by hliljegren
Hi!
Sometimes when I use

Code: Select all

import snapshot
the grey marking color (the color that is displayed to show the snap area) also gets snapped, so my images have a grey tint. Sometimes all of the image gets grey and sometimes only part of the image.

I guess this is a bug but is there any solution to get a proper snapshot every time, or, should I just file a bug?

Using LiveCode 4.5.1 on MacOS X 10.6.5

Re: import snapshot gives gray images

Posted: Tue Nov 30, 2010 5:29 am
by WaltBrown
Hi!
I tried to make that happen and could not reproduce that problem. I'm in 4.5.1 on Win Vista. We probably need more details. Do you have a stack which demonstrates it?
Walt

Re: import snapshot gives gray images

Posted: Tue Nov 30, 2010 3:44 pm
by Klaus
Hi all,

no problems here so far using LiveCode 4.5.1 on MacOS X 10.6.5.


Best

Klaus

Re: import snapshot gives gray images

Posted: Tue Nov 30, 2010 9:39 pm
by hliljegren
Ok,
Made a new stack...
added a button with the following script:

Code: Select all

on mouseUp
   hide this stack
   import snapshot
   show this stack
end mouseUp
Compiled, went to "run"-mode, pressed the button and this is my first snap:
Image

Maybe this is just my computer, as no one else seems to have the same problem...
...I'm running a MacBook Pro Intel Core i7 with the NVIDIA GeForce GT 330M.
Anyone with the same setup that can verify my findings?

Re: import snapshot gives gray images

Posted: Tue Nov 30, 2010 10:38 pm
by bn
Hi Hilljegren,

I see the same behavior. I have the same setup as you except it is a Core i5 processor.

I see sometimes (about half the time) a normal snapshot. The rest is either completely dark grey or a dark grey stripe at the top of variing size, can be as much as two-thirds of the image.
I tried to do it slowly, but still half of the images had the grey artifacts.

I dont use the import snap command. When I did a couple of versions ago it produced even more artifacts. So one could argue it is vastly improved :)
I do use the export snapshot command quite a lot and dont see problems. But as Mark noticed, there are issues with that also:
http://forums.runrev.com/phpBB2/viewtop ... 086#p28013

I guess its time to write to the Quality Control Center.

Kind regards

Bernd

Re: import snapshot gives gray images

Posted: Wed Dec 01, 2010 12:49 am
by WaltBrown
Interesting. I get very odd behavior now. BTW, I run with two screens, one above the other, with the main one (that has positive X and Y dimensions) underneath. The code you showed took no snapshot when I tried to select from the lower screen, but when I selected from the upper screen the snapshot was from the lower screen, as if "import snapshot" had used (Y coordinate * -1). In my case the colors are fine and I got no artifacts. I checked and only had the one image, so it didn't "hide" any snapshots off stack.

By the way, it also only worked if I was within the same dimensions of the lower screen. My upper screen is much larger, and attempts to capture a snap outside the width bounds of the lower screen produced nothing.

Walt

Re: import snapshot gives gray images

Posted: Thu Dec 02, 2010 10:26 am
by hliljegren
I built a stand-alone with almost the same code as above and the problems a less prone to occur there. ~1 out of 5 get a small narrow grey band. Mostly just the first one or two lines, which at least is good news.