Create a Screenshot and save this in a dyn_blob

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
2 posts • Page 1 of 1
taumic
Posts: 1
Joined: Thu Mar 09, 2023 10:21 am

Create a Screenshot and save this in a dyn_blob

Post by taumic »

Hello,

i would like to use the screenshot function in version 3.18 (OracleLinux) to fix and save entire screen contents.

For this I use:

...
anytype image;
image=getScreenshot(1); // 1 = Bildschirm 1
imageToFile(image, "/home/test/test.png");
...

The saved image is defective. It's a png but shifted in on itself, like a puzzle,
when you move a row by one position. What's wrong there? Is this a Linuxproblem?

Furthermore, I would like to save the image, if possible, in a data point of the type: dyn_blob.
There is not much written about dyn_blob in the help. Can it be used like the BLOB field type in ORACLE?
So far I have not been able to store data in such a field.

greetings

gschijndel
Posts: 330
Joined: Tue Jan 15, 2019 3:12 pm

Re: Create a Screenshot and save this in a dyn_blob

Post by gschijndel »

In case you want to make a screenshot of a WinCC OA module you could also try the shape function imageToFile. The last example shows how a screenshot of a panel can be made, using the rootPanel creates a screenshot of the whole module.

Post Reply
2 posts • Page 1 of 1