OK, I've spent a couple of weeks on this, I've searched the archives and the web, but it's still driving me nuts!
I've written the following code (Attachment: tCode.png)...
... to produce 'stamps' for marking assignments. When I run it the resolution / quality of the screenshot produce by Livecode is poor.
From the screen shot (Attachment: tResult.png), The top image snapshot produced by Livecode is smaller and of lower quality. The lower image is from Windows Snipping tool, which is perfect.
I use a 4K monitor which is 'scaled' (Attachment: tScreen.png)
How can I 'persuade' Livecode Community Edition to produce a quality snapshot?
export snapshot - resolution and quality
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 39
- Joined: Mon Apr 19, 2021 8:39 pm
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: export snapshot - resolution and quality
I have a feeling that if you do this sort of thing:
You might end up with something better than using rect.
I have been wrong before.
-----
Oh, and by-the-by: it is better for everyone if you can post code the way I did using this button:
-
Code: Select all
export snapshot from fld "CHAMPS" to file "CHAMPS.png" as PNG
I have been wrong before.
-----
Oh, and by-the-by: it is better for everyone if you can post code the way I did using this button:
-
-
- VIP Livecode Opensource Backer
- Posts: 4027
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: export snapshot - resolution and quality
Hi Gary,
I made a little stack that exports a snapshot from a Field. I find it easier than to create a graphic first and graphics do not scale well.
The field has not to be visible for this to work.
It uses a trick Klaus suggested for improving resolution of snapshots by taking snapshots "at size". (Klaus is one of the moderatores of this forum)
Could you test that stack in your setup?
Kind regards
Bernd
I made a little stack that exports a snapshot from a Field. I find it easier than to create a graphic first and graphics do not scale well.
The field has not to be visible for this to work.
It uses a trick Klaus suggested for improving resolution of snapshots by taking snapshots "at size". (Klaus is one of the moderatores of this forum)
Could you test that stack in your setup?
Kind regards
Bernd
- Attachments
-
- exportSnapshotFromField.livecode.zip
- (41.81 KiB) Downloaded 93 times
-
- Posts: 39
- Joined: Mon Apr 19, 2021 8:39 pm
Re: export snapshot - resolution and quality
Many thanks Bernd. I've adapted your code and have used snapshot from the field, not the rectangle. The quality is perfect, many thanks.
-
- Posts: 39
- Joined: Mon Apr 19, 2021 8:39 pm
Re: export snapshot - resolution and quality
Many thanks Richmond. The snapshot from a field has produced a good quality image.