Community Questions & Answers

toImage no working

I have tried the function toImage on android it doesn't work when I store the ~~~ var image = Ti.UI.createImageView({image: "path.png"}); var img = image.ToImage(); var toDisplay = Ti.UI.createImageView({image:...

I can't get toImage() callback to fire

Hi, I run Titanium Studio on Ubuntu 12.10 x64 with SDK-version 3.0.2 and I'm testing this on Android 4.2.2. I try to get an image of a view and I need to continue when I know that the image has been created. I get an image when running: ~~~ var image =...

view.toImage() no longer showing children

I have a function in my app that pulls an image from a secured server, places it in a view with several pieces of information, then uses the toImage() function to generate an image that I can safely post to Facebook without having to send a URL that...

Using toImage() on a View crashes in Android (SDK 1.6.1 and 1.6.2)

The following code works fine for the iPhone - it layers some labels on a view and then you can do a view.toImage(), save the blob data off to the temp directory and I have provided a sample email dialog to show the image being attached as one complete...

toBlob & toImage

plz if any 1 here know how to use this 2 function toBlob & toImage in the image views because i need know how to store some images in the database in a blob field and call it again to view it and plz if there an example or u have to try it...

ScreenShot entire webView?

I need a ScreenShot of entire webview, and not only of visible area. How can i do it? I try this, but not works.. :( ~~~ var screenShot = myWebView.toImage();; screenShot = screenShot.imageAsCropped({ height : 800, width : "100%", x : 0, y :...

row.toimage() issue

Platform: Android Version 1.8.2 I am using the following code to get the height of rows as i add them to set the height of the overall table. It works fine on the iPhone but not in android. Any idea? row.toImage().height

toImage() resolution

Hello! I have a view which dimensions are 250x250 px. I want to have an image of this view in it's native resolution, which is 500x500 because I am using a Retina display device. If I say view.toImage() the rendered image will not be retina sized. How can...

Webview toImage()

Hi, I'm trying to create an Image from a Webview like so: ~~~ var webView = Ti.UI.createWebView({ width:200, height:100, html:'<div style="font-size:12; font-family=Helvetica">Hi...

Problem in webview.toImage()

Hi, Can anyone tell why toimage method always return the image of previous view of webview? See the following code snippets. ~~~ function createHTMLString(price, tooltip, data){ var ymin = (data.ymin > 10) ? (data.ymin - 10) : data.ymin; ...

Get height of View

Hello, I want to get the height of the View. But toImage doesn't seems to work in Android. Has anyone a another solution? The View contains elements that doesn't have a fixed height. My stack trace says the following: > [TRACE] D/TiApplication(...

MAP.toImage() help

Ok so how do you use this function. I have tried different options and cant figure out how it works. If anyone has a working version of some code that they can share it would be most helpful.

Showing 1-35 of 35