import snapshot gives gray images

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

import snapshot gives gray images

Post by hliljegren » Mon Nov 29, 2010 11:00 am

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
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: import snapshot gives gray images

Post by WaltBrown » Tue Nov 30, 2010 5:29 am

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
Walt Brown
Omnis traductor traditor

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: import snapshot gives gray images

Post by Klaus » Tue Nov 30, 2010 3:44 pm

Hi all,

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


Best

Klaus

hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

Re: import snapshot gives gray images

Post by hliljegren » Tue Nov 30, 2010 9:39 pm

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?
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: import snapshot gives gray images

Post by bn » Tue Nov 30, 2010 10:38 pm

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

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: import snapshot gives gray images

Post by WaltBrown » Wed Dec 01, 2010 12:49 am

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
Walt Brown
Omnis traductor traditor

hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

Re: import snapshot gives gray images

Post by hliljegren » Thu Dec 02, 2010 10:26 am

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.
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3

Post Reply