[TIMOB-8006] MobileWeb : Window - Ti.UI.Window.toImage() is causing an error of "toImage" is not a function
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2012-03-14T13:18:18.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | qe-mw020912 |
Reporter | Michael Pettiford |
Assignee | Chris Barber |
Created | 2012-03-14T13:09:05.000+0000 |
Updated | 2014-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.
It is impossible today to support this. We have documented toImage() as unsupported.