You are not logged in.

1

Tuesday, May 21st 2019, 3:11pm

screenshot

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

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

2

Tuesday, May 21st 2019, 3:40pm

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

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

Tuur

Sage

Posts: 3,152

Location: Netherlands

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

  • Send private message

3

Tuesday, May 21st 2019, 3:42pm

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*
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 2 times, last edit by "Tuur" (May 21st 2019, 6:09pm)


4

Wednesday, May 22nd 2019, 8:09am


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*

This post has been edited 3 times, last edit by "San7" (May 22nd 2019, 8:48am)


Similar threads