Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27420] Android: ImageView.toImage() does not return the correct Ti.Blob

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-12-10T14:38:27.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsAndroid
LabelsengSchedule
ReporterGary Mathews
AssigneeGary Mathews
Created2019-09-25T19:54:59.000+0000
Updated2019-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();

Comments

  1. Gary Mathews 2019-09-25

    master: https://github.com/appcelerator/titanium_mobile/pull/11241
  2. Samir Mohammed 2019-11-27

    FR passed, waiting on Jenkins build.
  3. Sohail Saddique 2019-12-10

    Fix verified on build: 9.0.0.v20191209135132. Icon appears at centre of screen. Ticket closed.

JSON Source