Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8006] MobileWeb : Window - Ti.UI.Window.toImage() is causing an error of "toImage" is not a function

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2012-03-14T13:18:18.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsqe-mw020912
ReporterMichael Pettiford
AssigneeChris Barber
Created2012-03-14T13:09:05.000+0000
Updated2014-01-28T23:23:13.000+0000

Description

See http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Window.toImage-method.html Steps to reproduce: 1. Create a default mobile web project and replace the app.js code with that below
var win = Ti.UI.createWindow({
			backgroundColor : 'green'
		});

		Ti.Utils.md5HexDigest(win.toImage());
win.open();
Actual result: An error with the message "win.toImage is not a function" is shown in the error console Expected result: Returns an image of the rendered view, as a Blob.

Comments

  1. Chris Barber 2012-03-14

    It is impossible today to support this. We have documented toImage() as unsupported.

JSON Source