Does anyone know how I can make a user interface using smartgwt where the person uploads an image and the image is displayed on the screen?
I tried UploadItem but it only shows brows button using which we can go into the location of image file but i want also to show uploaded image on the screen
Is it possible in smartgwt?
Related
in my Firemonkey android app, i want to use a area( or an object ) in an image(image is placed in a form) as a button, first i thought about getting touch/click area and process from there, but since device screen could change from device to device, i want to know how to handle this situation ..
just for demonstration see this picture
(source: chainimage.com)
i want to use each item as a button.
how do i do that ? thanks in advance.
Your use of the ImageList in Delphi.
All your images in convert to Png or Ico.
Bring all the images in the ImageList.
Button connects to the ImageList.
In the ImageIndex Button to choose your Image.
The greater Button, Image greater.
Using the image in the project, to increase the size of the project.
More information:
http://docwiki.embarcadero.com/Libraries/Berlin/en/FMX.ImgList.TImageList
I explained very simply.
The first one ImageList component in the app. After all it is expanded to upload your photos.
Then ImageIndex photos to assign button.
I am developing a ios mobile app.In that mobile app I am showing the gallery. I created gallery in grid format with the help of JSON data.and also i provide a edit icon on that all images and video's of the gallery.if user click on edit icon the image is to be deleted.after that remaining images and video only show in grid format.so to get the non deleted images and videos in grid format we need to refresh the window. so can any one tell me how to refresh the current window in appcelerator ?
This would be an excellent case for Alloy's data binding:
http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_Data_Binding
If you're not using Alloy or for some reason do not want to use Collections to store your JSON data, then you will need to wrap the code where you render the icons in a function. When something changes/deletes you will have to call this function which should start with calling removeAllChildren() on the parent view which it will add the icons to.
i want to present a URL for example (http://edition.cnn.com/) with a thumbnail image from the site
do i need to Use Web View or try to extract images from the HTML, or there is a better solution ?
thanks.
It depends on what you want to see in the thumbnail image.
If you want to see a rendered preview of the site, then loading the page on a web view and taking a screen shot of that could be a way to go.
If you want to present an icon instead, you could load the source and scan it for a meta tag that contains the site's icon image. (such as og:image for example) and then download that.
anybody know how to insert image in Tableau worksheet and doing the hyperlink?
i only can add image in dashboard, and in dashboard i also cannot use the image as hyperlink.
From the Tableau on-line help
You can add static image files to the dashboard. For example you may
want to add a logo or descriptive diagram. When you add an image
object you are prompted to select an image from your computer. You can
also type a URL for an image that is hosted online. When you add an
image to a dashboard, you can customize how the image displays by
selecting an option on the images's menu. For example, you can select
whether to Fit Image, which scales the image to the size of image
object on the dashboard. You can also select whether to Center Image,
which aligns the image to the center of the image object on the
dashboard. Finally, you can Set URL, which turns the image into an
active hyperlink on the dashboard.
One of the easiest way to add image into dashboard as
To add image as hyperlink Go to dashboard Icon > Action > URL and in that paste your link as
Tableau image management is still a bit basic, and it's only available in dashboards.
Images can be copied into a dashboard by referencing an external URL in a web object, or a local file path.
You can then use the image object's menu to set a URL to open by clicking on the image.
When clicked, the web page will open in your default browser.
You can also add visuals to dashboards by using a web object to reference a URL - which might give you a more dynamic option, depending on your requirements.
There's a gotcha in Tableau sServer with that approach though - if a report is subscribed to, under the scheduler, a web object just renders as blank in the PNG file that gets emailed. This is also true for manual exports (e.g. to PDF) from Desktop.
So if you want to print/ export your dashboard with images, the image object is the best way to go.
To add an image in a worksheet, you need to use Marks Shape.
This is the process:
1.- Copy you image file to a folder in C:\Users\<username>\My Documents\My Tableau Repository\Shapes\My Image
Note that you need to create the folder My Image
2.- Create a calculated field with the formula: image
3.- Drag that calculate field to Rows shelf
4.- In Marks card, select Shape
5.- click on Shape button in Marks card and click on More Shapes....
6.- In dialogue Edit Shape, click on Reload Shapes, then select the Shape Palette My Image and select your image as a shape
Click on OK
Regulate the size of the shape on the view using Size button on Marks card
You can take advantage of the capacity of adding images to a dashboard. It a simpler approach.
In this case, you only need to create a dashboard and click on Image object (left-side of the dashboard) and select the image file in you disk. As a result the image in embedded in the dashboard.
Credits: Ramon Martinez on tableau community
Hope this helps.
With the iOS6 update, the "Save Image" touch popup menu is now gone when users are in a website that has apple-mobile-web-app-capable enabled. This is really important for my website http://2048px.com.
We want users to be able to add the site to their home screen. The way that users obtain new wallpaper is to click on the download button and then use the Save Image touch menu to save it to their camera roll. But like I said, in iOS6 the "Save Image" option seems to be gone when the webapp is being used.
Does anyone know of some magic meta tag to turn this back on? Or maybe a fancy way to save an image to the camera roll directly.
While I never found a solution to get the save image button back, I did find a solution. I noticed that if I opened a link in a new tab and the url to the link was an external domain, the link would open in Safari instead of the webapp. On my site, all my image for download are now being hosted on an external domain on S3. I then make the download links open in a new tab only when the website is in webapp mode. I accomplish this with the following code.
if (window.navigator.standalone) {
$('a.download').attr({target:'_blank',href:orig_download});
}