Titanium JIRA Archive
Appcelerator Community (AC)

[AC-931] Android's view.toImage returns a KrollDict instead to TiBlob

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-09-30T01:00:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
Reportergrebulon
AssigneeShak Hossain
Created2015-04-13T12:12:10.000+0000
Updated2016-03-08T07:37:14.000+0000

Description

The following code that is supposed to write a file containing the view's image fails. {noformat} var img = view.toImage(); var file = Ti.Filesystem.getFile(dir, "file.bin"); file.write(img); {noformat} That's because TiUIView.toView() returns the KrollDict that TiUIHelper.viewToImage() creates. It should only return the media in the dict.

Comments

  1. Shak Hossain 2015-09-30

JSON Source