Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-7586

iOS: image saved to filesystem using toImage() loses it's transparency

    Details

    • Story Points:
      1

      Description

      Problem

      Saving an image to the filesystem using toImage() method, does not keep the transparent property of the image

      Steps to reproduce

      See attached code

      app.js

      var window = Ti.UI.createWindow({
          backgroundColor:'#ff0'
      });
       
      var view = Ti.UI.createImageView({
          image:'KS_nav_ui.png',
      // var view = Ti.UI.createView({
          backgroundColor:'transparent',
          borderWidth:2,
          borderColor:'#f00',
          width:100,
          height:100,
          top:10
      });
       
      window.add(view);
       
      var image = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'tst.png');
      image.write(view.toImage());
       
      var img = Ti.UI.createImageView({
          width:200,
          height:200,
          bottom:10,
          image:image.nativePath
      });
       
      window.add(img);
      window.open();
      

      Link

      Ticket : http://support-admin.appcelerator.com/display/APP-785915

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                fcasali Federico Casali
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-12045
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code