Sie sind nicht angemeldet.

1

Dienstag, 21. Mai 2019, 15:11

screenshot

Screenshot(width, height, hotspots, type, jpegquality, crop, sizeinfo, cache)

Hello,
Tell me, please, how to write a crop correctly?

2

Dienstag, 21. Mai 2019, 15:40

screenshot(width, height, hotspots, type, jpegquality, { x: 100, y: 100, w: 400, h: 300 }, sizeinfo, cache)

https://krpano.com/docu/plugininterface/….makeScreenshot

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Dienstag, 21. Mai 2019, 15:42

Hi,

edit: never mind.. see answer from indexofrefraction ^

when you look in the examples folder in your krpano download package there is an example.
line 53 in makescreenshot-api-example.xml:


Tuur *thumbsup*

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Tuur« (21. Mai 2019, 18:09)


4

Mittwoch, 22. Mai 2019, 08:09


Thanks for answers!at makescreenshot-api-example.xml: I tried to do so
onclick="makescreenshot(0,0,true,jpg,0.85,{x: 100, y: 100, w: 400, h: 300 },);"
But it saves a snapshot of the entire screen.

A, 53 lines - tried so
var screenshotcanvas = krpano.webGL.makeScreenshot(0, 0, true, "canvas", 0, {x:200, y:300, w:500, h:500 }, sizeinfo, krpano.makeScreenshotCache);
This oddly saves the image size 155x155

Where am I wrong?
*confused*

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »San7« (22. Mai 2019, 08:48)


Ähnliche Themen