You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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,129

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