[AC-2983] .toImage() & toBlob() is not capturing the visual state of object after transformation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-12-28T05:12:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, defect, toBlob, toImage |
Reporter | Giannis Sgouros |
Assignee | Paul Dowsett |
Created | 2011-11-25T02:14:26.000+0000 |
Updated | 2016-03-08T07:47:59.000+0000 |
Description
var s = Ti.UI.create2DMatrix();
s = s.rotate(90);
var originalImgView = Ti.UI.createImageView({
image : myimage,
height : myHeight,
width : myWidth,
transform : s,
top : 0,
left : 0
});
var f = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, 'filename.jpg');
var rawdata = originalImgView.toBlob();
f.write(rawdata);
The image saved is not transformed.
Thanks for raising this ticket. In order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. Furthermore, a test case must run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. I will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project. Cheers
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance
This should not have been closed. It's still an issue (Titanium Mobile SDK 2.0.1 GA2) and the code example describes exactly what the problem is. Please look into fixing this.