 |
|
 |
Loupe |
|
|
| ghostwalker |
Sep 5 2007, 08:34 PM
|

Posts: 1,993
Joined: 12-November 04
From: Seneca, Missouri
Member No.: 3,762

|
Here is javascript for a web page loupe, I was wondering if this could be modified to work in a widget. I dont have the expertise to do this and I was hoping someone here would. You can view the js in action and download it here. http://www.netzgesta.de/loupe/if no one wants to attempt this I guess I will keep trying.
|
|
|
|
|
| BOINCer |
Sep 5 2007, 08:48 PM
|
Posts: 1,288
Joined: 28-September 05
From: Buenos Aires, Argentina
Member No.: 10,111

|
Shouldn't be so hard. But my "in-progress projects that I want to finish" list has more than 5 items...
|
|
|
|
|
| ghostwalker |
Oct 22 2007, 12:39 PM
|

Posts: 1,993
Joined: 12-November 04
From: Seneca, Missouri
Member No.: 3,762

|
QUOTE The license conditions do not permit its use in a Widget. Noted, I have sent an email asking for permission to use it in a Widget hopefully I will get a good response.
|
|
|
|
|
| Cicerone Pavaloi |
Oct 22 2007, 02:43 PM
|

Posts: 562
Joined: 7-March 07
From: Iasi, Romania
Member No.: 20,296

|
QUOTE(ghostwalker @ Oct 22 2007, 03:27 PM)  Is there no way to accomplish this? Possibly taking a screenshot of what is under it and then magnifying that image(thinking out loud)
My 50 cents: It should take at least 15 screenshots per second in order to have an acceptable refresh rate for a real time loupe. The current method of "providing" a screenshot to a widget not only involves external libraries/software, but saveing and reading a file (preferable a png, for a smoother zoom) which is pretty cpu and time consuming for 15 fps... This depends on the size of the loupe, of course. Plus, if you want to zoom (capture) the others widgets too (in fact, any other layered windows), you need to capture the screenshot without the loupe, that means: hide loupe, snap screenshot, save file, load file, show loupe... Probably very nasty flickering.  If you want just a snapshot inspector loupe, a zoom on a screenshot taken when the loupe is activated, that should be doable with no visible performance penalty. And you can't capture overlay windows (video)... (i don't know any screencapture utility that can do that, at least on windows)
|
|
|
|
|
| BOINCer |
Oct 22 2007, 03:33 PM
|
Posts: 1,288
Joined: 28-September 05
From: Buenos Aires, Argentina
Member No.: 10,111

|
If you have Linux with compiz-fusion, hold windows key and zoom with mouse wheel. Even works with video overlays. Windows is lagging behind.
|
|
|
|
|
| CSM |
Oct 22 2007, 04:27 PM
|

Posts: 2,386
Joined: 1-September 06
From: ̶O̶h̶i̶o̶ Washington
Member No.: 16,587

|
Almost every computer has Java nowadays. If it doesn't ... You Luddite! Anyways, Java has a Robot class that can take screenshots and I believe (I would have to relook at my old code) can specify an area to take, so you don't have to reload the *whole* screen each time, just where the magnifier is. (and even then, if you blow it up 2 times, you only need half that area then)
If you want I can create a Java program that captures a specified area. Java programs can accept command line parameters, of RunCommand with switches and stuff should do it. It'll have to run from the WidgetDataFolder (so it has a place to dump the image)
However, I need your input. Is it worth me spending the time to make the program?
A result of starting my server over, links from my posts may not work (especially those in the "temp" subdomain). If there is a link to something of which anyone would like to have a copy, personal message me with what you're looking for along with a way to provide this to you, and I'll see if I can find a copy. Thanks for your patience and understanding. - "Not just another open source project. Lend your talent and make a difference!" (Dead) - "The future is now." (No longer community site) (Domain has lapsed) Published: AtomicComicBlast, Barra de Lenguas, ComicWizard-4.0, MicroColors, PassGen, ScrabbleChecker, SoundBank, Uni, VisualWidget, WarpedReality Unavailable: Paradigm [clock], Puzzled, SecurityLogger, Wayback Widget Ready to be published: Cαlcυlατοr, CursorTails, Blackout, Block Puzzler, BombSquad, Palette, SnipIt ActiveDev: InactiveDev/Dead: BeatMod, Bubble Pop, Canvas Clock, Canvas Gauges, Canvas Pro, Clipboard, Crayon, Hermes, InTune, Konverter, Magic Deck, OverRuled, Outside, Slither, SystemBeat, Tetresque, Tetrad, Widget, WinSysRemote Dropped: BlankScreen, Document "Fixer", Intuitive [ -> Blackout], Motion Widget: HHGTTG CoDevelopment: Atmosphere, Block Puzzler, BombSquadMiniature Scripts: BinarySearchTree, Calendar, Canvas Gears, Checkbox, File-Browser, LinkedList/Stack, MDI Setup, MiniMax AI, PieGraph, ProgressBar, Slider widget, TabbedPane, Table, Tokenizer, TreeMenuJava+: Java Music Daemon, ScreenCapture JAR, Widget-Java/Server Bridge Example"Published" Texts: DynamicWidgetGuide Konfabulator Libraries: Color-space Library, Javable Widget ProjectWidget Tutorials: "Spawning" Widgets, JavaScript ClassesContests: Widget 4k - "Expanded" [not happening; canceled]Non-Widget Work: Hazlenut, Konspirators Online, PHP BB-Code Parser, ShortClient, Zap
|
|
|
|
|
| ghostwalker |
Oct 22 2007, 04:31 PM
|

Posts: 1,993
Joined: 12-November 04
From: Seneca, Missouri
Member No.: 3,762

|
I use a docklet originally made for Yz Dock now I use RK Launcher and it is a dll file that will capture video on windows even layered windows. Works better than any capture software I have ever used, just took this with one click.  QUOTE("CSM") However, I need your input. Is it worth me spending the time to make the program? I was hoping you would show up and the answer is yes as long as it will work on both platforms.
|
|
|
|
|
| CSM |
Oct 22 2007, 05:44 PM
|

Posts: 2,386
Joined: 1-September 06
From: ̶O̶h̶i̶o̶ Washington
Member No.: 16,587

|
QUOTE(ghostwalker @ Oct 22 2007, 11:31 AM)  I was hoping you would show up and the answer is yes as long as it will work on both platforms.
That is the point of Java! That is to say, the program will work on any platform that supports Java (and has it installed), even those that can't run Y!WE. Command line arguments (order does count): - 0, anything else not explicitly taken care of below.
- Assumes upper-left of screen.
- Captures entire screen.
- 2
- Assumes upper-left of screen.
- First two arguments = width, height (in that order)
- 4
- First two arguments = x, y (in that order)
- Second two arguments = width, height (in that order)
- 5
- See 4 args.
- Fifth argument = image type abbreviation: (png, jpg, anything Java supports)
- 6
- See 5 args.
- Sixth argument = image name w/o extension. (uses image type provided before as the extension)
Unless supplied as detailed above, default image type is png, and default name is "output". Sample Output:  Sample Output created using: CODE -50, -50, -300, -150, -png, -myoutput (done within Eclipse [run dialog, arguments tab]. Actual command-line syntax may vary) File is available here: http://www.savefile.com/files/1142775(source included)
A result of starting my server over, links from my posts may not work (especially those in the "temp" subdomain). If there is a link to something of which anyone would like to have a copy, personal message me with what you're looking for along with a way to provide this to you, and I'll see if I can find a copy. Thanks for your patience and understanding. - "Not just another open source project. Lend your talent and make a difference!" (Dead) - "The future is now." (No longer community site) (Domain has lapsed) Published: AtomicComicBlast, Barra de Lenguas, ComicWizard-4.0, MicroColors, PassGen, ScrabbleChecker, SoundBank, Uni, VisualWidget, WarpedReality Unavailable: Paradigm [clock], Puzzled, SecurityLogger, Wayback Widget Ready to be published: Cαlcυlατοr, CursorTails, Blackout, Block Puzzler, BombSquad, Palette, SnipIt ActiveDev: InactiveDev/Dead: BeatMod, Bubble Pop, Canvas Clock, Canvas Gauges, Canvas Pro, Clipboard, Crayon, Hermes, InTune, Konverter, Magic Deck, OverRuled, Outside, Slither, SystemBeat, Tetresque, Tetrad, Widget, WinSysRemote Dropped: BlankScreen, Document "Fixer", Intuitive [ -> Blackout], Motion Widget: HHGTTG CoDevelopment: Atmosphere, Block Puzzler, BombSquadMiniature Scripts: BinarySearchTree, Calendar, Canvas Gears, Checkbox, File-Browser, LinkedList/Stack, MDI Setup, MiniMax AI, PieGraph, ProgressBar, Slider widget, TabbedPane, Table, Tokenizer, TreeMenuJava+: Java Music Daemon, ScreenCapture JAR, Widget-Java/Server Bridge Example"Published" Texts: DynamicWidgetGuide Konfabulator Libraries: Color-space Library, Javable Widget ProjectWidget Tutorials: "Spawning" Widgets, JavaScript ClassesContests: Widget 4k - "Expanded" [not happening; canceled]Non-Widget Work: Hazlenut, Konspirators Online, PHP BB-Code Parser, ShortClient, Zap
|
|
|
|
|
| CSM |
Oct 22 2007, 06:10 PM
|

Posts: 2,386
Joined: 1-September 06
From: ̶O̶h̶i̶o̶ Washington
Member No.: 16,587

|
QUOTE(ghostwalker @ Oct 22 2007, 01:07 PM)  very quick and very cool, seems when ran it outputs to the directory it is in will I have to change that in the .jar file or can the output directory be called in the .kon or .js file?
There is no real way to tell it the WidgetDataFolder except by argument and I do not wish to add any more. I suggest you extract the .jar to the WidgetDataFolder and run it from there.
A result of starting my server over, links from my posts may not work (especially those in the "temp" subdomain). If there is a link to something of which anyone would like to have a copy, personal message me with what you're looking for along with a way to provide this to you, and I'll see if I can find a copy. Thanks for your patience and understanding. - "Not just another open source project. Lend your talent and make a difference!" (Dead) - "The future is now." (No longer community site) (Domain has lapsed) Published: AtomicComicBlast, Barra de Lenguas, ComicWizard-4.0, MicroColors, PassGen, ScrabbleChecker, SoundBank, Uni, VisualWidget, WarpedReality Unavailable: Paradigm [clock], Puzzled, SecurityLogger, Wayback Widget Ready to be published: Cαlcυlατοr, CursorTails, Blackout, Block Puzzler, BombSquad, Palette, SnipIt ActiveDev: InactiveDev/Dead: BeatMod, Bubble Pop, Canvas Clock, Canvas Gauges, Canvas Pro, Clipboard, Crayon, Hermes, InTune, Konverter, Magic Deck, OverRuled, Outside, Slither, SystemBeat, Tetresque, Tetrad, Widget, WinSysRemote Dropped: BlankScreen, Document "Fixer", Intuitive [ -> Blackout], Motion Widget: HHGTTG CoDevelopment: Atmosphere, Block Puzzler, BombSquadMiniature Scripts: BinarySearchTree, Calendar, Canvas Gears, Checkbox, File-Browser, LinkedList/Stack, MDI Setup, MiniMax AI, PieGraph, ProgressBar, Slider widget, TabbedPane, Table, Tokenizer, TreeMenuJava+: Java Music Daemon, ScreenCapture JAR, Widget-Java/Server Bridge Example"Published" Texts: DynamicWidgetGuide Konfabulator Libraries: Color-space Library, Javable Widget ProjectWidget Tutorials: "Spawning" Widgets, JavaScript ClassesContests: Widget 4k - "Expanded" [not happening; canceled]Non-Widget Work: Hazlenut, Konspirators Online, PHP BB-Code Parser, ShortClient, Zap
|
|
|
|
|
| CSM |
Oct 22 2007, 06:23 PM
|

Posts: 2,386
Joined: 1-September 06
From: ̶O̶h̶i̶o̶ Washington
Member No.: 16,587

|
Not without "extensive" work to clip it. I have no idea how to do that right now. (It would take drawing it to a Graphics object (with a circular clip) then finding a way to get that back to a buffered image (almost impossible)...).
Why can't you just draw it to a Canvas with a self-defined clip?
A result of starting my server over, links from my posts may not work (especially those in the "temp" subdomain). If there is a link to something of which anyone would like to have a copy, personal message me with what you're looking for along with a way to provide this to you, and I'll see if I can find a copy. Thanks for your patience and understanding. - "Not just another open source project. Lend your talent and make a difference!" (Dead) - "The future is now." (No longer community site) (Domain has lapsed) Published: AtomicComicBlast, Barra de Lenguas, ComicWizard-4.0, MicroColors, PassGen, ScrabbleChecker, SoundBank, Uni, VisualWidget, WarpedReality Unavailable: Paradigm [clock], Puzzled, SecurityLogger, Wayback Widget Ready to be published: Cαlcυlατοr, CursorTails, Blackout, Block Puzzler, BombSquad, Palette, SnipIt ActiveDev: InactiveDev/Dead: BeatMod, Bubble Pop, Canvas Clock, Canvas Gauges, Canvas Pro, Clipboard, Crayon, Hermes, InTune, Konverter, Magic Deck, OverRuled, Outside, Slither, SystemBeat, Tetresque, Tetrad, Widget, WinSysRemote Dropped: BlankScreen, Document "Fixer", Intuitive [ -> Blackout], Motion Widget: HHGTTG CoDevelopment: Atmosphere, Block Puzzler, BombSquadMiniature Scripts: BinarySearchTree, Calendar, Canvas Gears, Checkbox, File-Browser, LinkedList/Stack, MDI Setup, MiniMax AI, PieGraph, ProgressBar, Slider widget, TabbedPane, Table, Tokenizer, TreeMenuJava+: Java Music Daemon, ScreenCapture JAR, Widget-Java/Server Bridge Example"Published" Texts: DynamicWidgetGuide Konfabulator Libraries: Color-space Library, Javable Widget ProjectWidget Tutorials: "Spawning" Widgets, JavaScript ClassesContests: Widget 4k - "Expanded" [not happening; canceled]Non-Widget Work: Hazlenut, Konspirators Online, PHP BB-Code Parser, ShortClient, Zap
|
|
|
|
|
| CSM |
Oct 22 2007, 06:36 PM
|

Posts: 2,386
Joined: 1-September 06
From: ̶O̶h̶i̶o̶ Washington
Member No.: 16,587

|
That's what the manual is for! Time for that age old phrase: Read The Fine Manual.
A result of starting my server over, links from my posts may not work (especially those in the "temp" subdomain). If there is a link to something of which anyone would like to have a copy, personal message me with what you're looking for along with a way to provide this to you, and I'll see if I can find a copy. Thanks for your patience and understanding. - "Not just another open source project. Lend your talent and make a difference!" (Dead) - "The future is now." (No longer community site) (Domain has lapsed) Published: AtomicComicBlast, Barra de Lenguas, ComicWizard-4.0, MicroColors, PassGen, ScrabbleChecker, SoundBank, Uni, VisualWidget, WarpedReality Unavailable: Paradigm [clock], Puzzled, SecurityLogger, Wayback Widget Ready to be published: Cαlcυlατοr, CursorTails, Blackout, Block Puzzler, BombSquad, Palette, SnipIt ActiveDev: InactiveDev/Dead: BeatMod, Bubble Pop, Canvas Clock, Canvas Gauges, Canvas Pro, Clipboard, Crayon, Hermes, InTune, Konverter, Magic Deck, OverRuled, Outside, Slither, SystemBeat, Tetresque, Tetrad, Widget, WinSysRemote Dropped: BlankScreen, Document "Fixer", Intuitive [ -> Blackout], Motion Widget: HHGTTG CoDevelopment: Atmosphere, Block Puzzler, BombSquadMiniature Scripts: BinarySearchTree, Calendar, Canvas Gears, Checkbox, File-Browser, LinkedList/Stack, MDI Setup, MiniMax AI, PieGraph, ProgressBar, Slider widget, TabbedPane, Table, Tokenizer, TreeMenuJava+: Java Music Daemon, ScreenCapture JAR, Widget-Java/Server Bridge Example"Published" Texts: DynamicWidgetGuide Konfabulator Libraries: Color-space Library, Javable Widget ProjectWidget Tutorials: "Spawning" Widgets, JavaScript ClassesContests: Widget 4k - "Expanded" [not happening; canceled]Non-Widget Work: Hazlenut, Konspirators Online, PHP BB-Code Parser, ShortClient, Zap
|
|
|
|
|
| CSM |
Oct 22 2007, 07:41 PM
|

Posts: 2,386
Joined: 1-September 06
From: ̶O̶h̶i̶o̶ Washington
Member No.: 16,587

|
Far as I can tell, all you need to do is make the clip once, then keep drawing the image to the same Canvas. (this assumes that the magnifying glass never changes size. If it does, make a new Canvas and make a new larger/smaller clip.)
A result of starting my server over, links from my posts may not work (especially those in the "temp" subdomain). If there is a link to something of which anyone would like to have a copy, personal message me with what you're looking for along with a way to provide this to you, and I'll see if I can find a copy. Thanks for your patience and understanding. - "Not just another open source project. Lend your talent and make a difference!" (Dead) - "The future is now." (No longer community site) (Domain has lapsed) Published: AtomicComicBlast, Barra de Lenguas, ComicWizard-4.0, MicroColors, PassGen, ScrabbleChecker, SoundBank, Uni, VisualWidget, WarpedReality Unavailable: Paradigm [clock], Puzzled, SecurityLogger, Wayback Widget Ready to be published: Cαlcυlατοr, CursorTails, Blackout, Block Puzzler, BombSquad, Palette, SnipIt ActiveDev: InactiveDev/Dead: BeatMod, Bubble Pop, Canvas Clock, Canvas Gauges, Canvas Pro, Clipboard, Crayon, Hermes, InTune, Konverter, Magic Deck, OverRuled, Outside, Slither, SystemBeat, Tetresque, Tetrad, Widget, WinSysRemote Dropped: BlankScreen, Document "Fixer", Intuitive [ -> Blackout], Motion Widget: HHGTTG CoDevelopment: Atmosphere, Block Puzzler, BombSquadMiniature Scripts: BinarySearchTree, Calendar, Canvas Gears, Checkbox, File-Browser, LinkedList/Stack, MDI Setup, MiniMax AI, PieGraph, ProgressBar, Slider widget, TabbedPane, Table, Tokenizer, TreeMenuJava+: Java Music Daemon, ScreenCapture JAR, Widget-Java/Server Bridge Example"Published" Texts: DynamicWidgetGuide Konfabulator Libraries: Color-space Library, Javable Widget ProjectWidget Tutorials: "Spawning" Widgets, JavaScript ClassesContests: Widget 4k - "Expanded" [not happening; canceled]Non-Widget Work: Hazlenut, Konspirators Online, PHP BB-Code Parser, ShortClient, Zap
|
|
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |