[TIMOB-27420] Android: ImageView.toImage() does not return the correct Ti.Blob
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-12-10T14:38:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.0.0 |
Components | Android |
Labels | engSchedule |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2019-09-25T19:54:59.000+0000 |
Updated | 2019-12-10T14:38:27.000+0000 |
Description
-
Titanium.UI.ImageView.toImage
does not return the image Blob
for the current image.
*TEST CASE*
const Map = require('ti.map');
const win = Ti.UI.createWindow({ backgroundColor: 'white' });
const img = Ti.UI.createImageView({
width: 28,
height: 28,
image: 'appicon.png'
});
const map = Map.createView({
region: { latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },
annotations: [
Map.createAnnotation({
latitude: -33.87365,
longitude: 151.20689,
title: 'Icon',
image: img.toImage() // Should see icon center of map
// image: 'appicon.png'
})
],
});
win.add(map);
win.open();
master: https://github.com/appcelerator/titanium_mobile/pull/11241
FR passed, waiting on Jenkins build.
Fix verified on build: 9.0.0.v20191209135132. Icon appears at centre of screen. Ticket closed.