Export snapshot black picture

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
SEAL29
Posts: 63
Joined: Fri Oct 02, 2020 3:32 pm

Export snapshot black picture

Post by SEAL29 »

Hi.
I have export the snapshot but the picture is black the path and file name is correct. I use this command:

Code: Select all

 set the JPEGQuality to 100
export snapshot from rect “15,30,260,340” to file tFilepath as JPEG
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Export snapshot black picture

Post by Klaus »

Hi SEAL29,

you need to add a reference or LC will use GLOBAL coordinates (from the topleft of your monitor)
and not coords relative to your stack!

Try this:

Code: Select all

set the JPEGQuality to 100
export snapshot from rect “15,30,260,340” OF THIS CD to file tFilepath as JPEG
Best

Klaus
SEAL29
Posts: 63
Joined: Fri Oct 02, 2020 3:32 pm

Re: Export snapshot black picture

Post by SEAL29 »

Thank you.
Post Reply