GWT Programatically Save Panel to Image - gwt

I would like to be able to save the contents of a decorator panel into some sort of image format. Does anyone have an ideas of how i could either take a screen shot and save it or some how export a panel to an imae format?

Try using html2canvas. GWT Panel is just a html element with some javascript to handle the layout.
You can find html2canvas here: http://html2canvas.hertzen.com/

Related

BlueImp File Upload Widget for Yii2

Can anyone provide manuals for this yii2 plugin use?
I have installed it but have not been able to find the options it accepts, for example: Right after an image is uploaded, the thumbnail displayed is in full size (bigger than the page width). How to resize that?
Thank you.
sample image

I need to insert an image between text in aem6.0

I need to insert a small image between text as below..
Please click here to see the example
Can I achieve this by using text and image component? If yes, how? Or any other way to achieve this?
You could do this with image but that would require special handing in your script/jsp/htl.
In most of the cases these images are governed via CSS classes and not dragged and drop. You could use the plugins feature of richtext component to create custom styles and apply them to the text. Refer to the Adobe's document here.
It seems you need to add icon in the text configured via RTE. To achieve this you have to build custom plugin by using Coral/Granite UI. This Link will be helpful to develop same sort of functionality.

Display image in Leaflet (Cloudmade) popups

I am using the default settings for the Leaflet (cloudmade) Simple project (https://github.com/perrygeo/leaflet-simple-csv/blob/master/README.md).
I have a 1300 record CSV which displays well, and on-click the attributes display text in popup window.
Two of the fields are URLs to small JPG images. I would like these to display in the popup window. I've tried but to no avail.
Link to project: http://erichsen-group.com/demoland/datademo/projects/
How can I show the images?
Have you tried using <img></img> tags instead of <a href></a>? they are links because they are written as links. Or you can do <img src="mySource"> dont forget to play with the styling of the img tag. The height and width.

How to display a scrollable grid of images in matlab GUI

How can i display a scrollable grid of images in matlab GUI?
I want something similar to what is shown below
This stackoverflow post describes a way of displaying images in a uitable by setting the 'String' property to an HTML code pointing to an image. But this requires me to save the images to disk which is not an option i would like as these displays are fired up dynamically.
It would also be nice, if i could add a checkbox inside each image so the user can select a subset of them.
You can use this tool. In the gui, you should be able to scroll through. But to have title below every image you might have to edit the tool.
Sample output:
a grid of images http://www.mathworks.in/matlabcentral/fx_files/22387/12/imdisp.jpg
The answer is here:
How can I use scrollbars in MATLAB figure windows when viewing large GUIs?
-> Note: This is a workaround, scrollbars are not available for Matlab-figures
I would suggest to use the tool Prashanth presented in his awnswer and combine it, by putting all elements within the panel.

How to select text on image in iPhone/iPad

Hi I am working on e-book application where the pages of the book are displayed as SVG files.as a part of my application functionality i should able to select text from the SVG files which are rendered as images on web view.can anbody suggest me a way to do this.Thanks in advance.
How do you display the SVG? I'd think you do that in WebView. In that case you'd have to provide the text as a separate layer using HTML elements as an "overlay" over the displayed SVG.
I don't think iOS/WebView lets you select text from a SVG through WebView.
but why do you say the svg is rendered as "image"?
if you load te .svg file in a UIWebView directly or via an HTML file which load the svg...
it should be able to load the "normal" menu with "copy", "select"...
if you need only the "copy" menuItem
just add this:
-(void)copy:(id)sender{
NSLog(#"COPY!!");
[super copy:sender];
}
in the UIViewController of your UIWebView.
It works for me for all the html pages and for a .svg files with some text inside it
(i mean that the text to copy is in "myFile.svg")