revansx@cox.net wrote:
> Folks,
>
> I aplogize for posting a second time. I am surprised at what little has
> be said about this issue. Is there another list that I should post this
> to?
> ---------------------------------------------------------------------------
> Please give me some advice on the following situation:
>
> I am attempting to develop a completely web-based set of tools that can
>
> match the functionality of a set of Tcl/Tk programs that are used in
> our control system environment. I believe that I can do everything that
>
> the Tcl/Tk tools are doing except this one thing:
>
> The Tcl/Tk app allows the user to pick two points on their screen
> (which defines a rectangle) and then automatically grabs that potion of
>
> the screen as an image and embeds it into the Tcl/Tk app as an object
> which is then uploaded to a database when the user has submitted the
> Tcl/Tk form.
Nothing too much to discuss in <comp.lang.javascript>, this is why
there are not too many answers. JavaScript doesn't allow low level
system access, so this project is not doable in JavaScript. You need to
get a screen snapshot (like on Print Screen press in Windows), paste it
in some graphics editor, select an area on the image, crop image to the
selection and save the result in some image format. This is a task for
a fully functional graphics editor on the level of Paint at least. I
know no programming language at all having a fully functional graphics
editor build-in. Even Java with its PixelGrabber is below the task. I
doubt very much that Tcl/Tk has it, but if it does (I did not work with
Tcl) then it's really cool and unusual.
You may possibly write your own ActiveX / Java plugin with extended
privileges (properly signed then) to achieve it.
You may redirect your question to <comp.lang.java.help> to start with.
Received on Mon May 1 04:20:37 2006