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: 61
Joined: Fri Oct 02, 2020 3:32 pm

Export snapshot black picture

Post by SEAL29 » Tue Jan 16, 2024 3:19 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Export snapshot black picture

Post by Klaus » Tue Jan 16, 2024 3:42 pm

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: 61
Joined: Fri Oct 02, 2020 3:32 pm

Re: Export snapshot black picture

Post by SEAL29 » Tue Jan 16, 2024 3:54 pm

Thank you.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”