how to save the Screenshot via JS plugin API

38 views
Skip to first unread message

sandra

unread,
Jun 24, 2011, 8:23:50 PM6/24/11
to Google Earth API
I know there is a function in COM API name SaveScreenshot, but I did
not find it in JS API. Could some body help me this out, thanks so
much.

Paul van Dinther

unread,
Jun 24, 2011, 8:25:36 PM6/24/11
to google-e...@googlegroups.com
Not yet available. I have heard rumors that such feature will be added
to the api.
Personally I can't wait for that feature as it opens up a lot of new
applications.

> --
> You received this message because you are subscribed to the Google Groups "Google Earth API" group.
> To post to this group, send email to google-e...@googlegroups.com.
> To unsubscribe from this group, send email to google-earth-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-earth-api?hl=en.
>
>

--
Regards

Paul van Dinther
Our Google Earth creations at www.planetinaction.com

sandra

unread,
Jun 24, 2011, 8:32:02 PM6/24/11
to Google Earth API
oops, So right now do we have similar way to achieve the same effect?

On Jun 25, 8:25 am, Paul van Dinther <vandint...@gmail.com> wrote:
> Not yet available. I have heard rumors that such feature will be added
> to the api.
> Personally I can't wait for that feature as it opens up a lot of new
> applications.
>
> On Sat, Jun 25, 2011 at 12:23, sandra <chunjie.wan...@gmail.com> wrote:
> > I know there is a function in COM API name SaveScreenshot, but I did
> > not find it in JS API. Could some body help me this out, thanks so
> > much.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Google Earth API" group.
> > To post to this group, send email to google-e...@googlegroups.com.
> > To unsubscribe from this group, send email to google-earth-a...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/google-earth-api?hl=en.

Paul van Dinther

unread,
Jun 24, 2011, 8:38:21 PM6/24/11
to google-e...@googlegroups.com
The only way is to wrap the plugin into another application.
I build a moviemaker application a while back that involved the following:

Windows application (C++ or Delphi) embeds an activeX web browser control (MSIE)
The webbrowser is made to load a predefined HTML page that embeds the plugin.

Communication from the windows application passing js calls to the
browser -> Webpage -> plugin

A crazy contraption all because Google does not support and publish a
full COM interface. At the windows application level I do the screen
capture by making a screenshot and build a video file from it.

However, I hate this "Solution" so much that I never bothered to
publish it. Screenshots should be rendered by the plugin internally
and not by capturing the screen. Even the Pro version that has
movimaker build in still relies on screen capture. This is evident
because screenshots include the 3D shadow effect at the top of the
plugin window.

There is no workaround that I know to capture a screenshot from inside
a web-application.

> For more options, visit this group at http://groups.google.com/group/google-earth-api?hl=en.

Reply all
Reply to author
Forward
0 new messages