WindowID and Revlet ?

4 messages Options
Embed this post
Permalink
Ludovic Thébault

WindowID and Revlet ?

Reply Threaded More More options
Print post
Permalink
Hello,

I need to do an import snapshot on a portion of my stack. But if it's work well in revMedia, on the web, the snapshot seem to be relative to the corner of the browser's window, not the stack's window.

How do this ?

Thx !_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Jan Schenkel

Re: WindowID and Revlet ?

Reply Threaded More More options
Print post
Permalink
Well, technically, the revlet is not a window of its own, but occupies part of the browser window, but that's splitting hairs ;-)

Please file a report in the Quality Control Center so that the RunRev team can decide what to do about this: update the documentation, or modify the command.
<http://quality.runrev.com>

In the meantime, if we're talking about a single control, or a group of controls, you could try using the 'export snapshot from <object>' command instead.

HTH,

Jan Schenkel
=====
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


--- On Sat, 11/14/09, Ludovic Thébault <[hidden email]> wrote:

> From: Ludovic Thébault <[hidden email]>
> Subject: WindowID and Revlet ?
> To: "How to use Revolution" <[hidden email]>
> Date: Saturday, November 14, 2009, 7:21 AM
> Hello,
>
> I need to do an import snapshot on a portion of my stack.
> But if it's work well in revMedia, on the web, the snapshot
> seem to be relative to the corner of the browser's window,
> not the stack's window.
>
> How do this ?
>
> Thx !_______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Richard Miller-5

Re: WindowID and Revlet ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ludovic Thébault
Here's what I do to export a snapshot in RevWeb. I'd guess the same code
works for import snapshot.

This is exporting a snapshot of a player object into a file "fname".

   if "development" is in the environment then
      put the rect of player 1 into temp
      put item 1 of the topleft of this stack into x
      put item 2 of the topleft of this stack into y
      put item 1 of temp + x into x1
      put item 2 of temp + y into y1
      put item 3 of temp + x into x2
      put item 4 of temp + y into y2
      put x1 & comma & y1 & comma & x2 & comma & y2 into temp2
      export snapshot from rect temp2 to file fname as jpeg
   else
      put item 1 of the topleft of this stack into tx
      put item 2 of the topleft of this stack into ty
      put item 1 of the topleft of player 1 + tx into temp2
      put item 2 of the topleft of player 1 + ty into item 2 of temp2
      put the bottomright of player 1 into bx
      put item 1 of bx + tx into item 3 of temp2
      put item 2 of bx + ty into item 4 of temp2
      export snapshot from rect temp2 to file fname as jpeg
   end if

Hope that does it for you.
Richard Miller



Ludovic Thébault wrote:

> Hello,
>
> I need to do an import snapshot on a portion of my stack. But if it's work well in revMedia, on the web, the snapshot seem to be relative to the corner of the browser's window, not the stack's window.
>
> How do this ?
>
> Thx !_______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>  

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Ludovic Thébault

Re: WindowID and Revlet ?

Reply Threaded More More options
Print post
Permalink

Le 14 nov. 2009 à 17:01, Richard Miller a écrit :
>
> Hope that does it for you.
> Richard Miller
>

Thank ! It's perfect !
http://ludovic.thebault.free.fr/accueilonline.php?rub=geom_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution