Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-29023

BitmapImage scale9Grid + smooth

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.6 (Release)
    • None
    • Spark: Image
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Embed a bitmap asset
      2. Create a BitmapImage mxml tag, set smooth="true"
      3. Create a Sprite
      4. Create a Bitmap
      5. Instantiate the bitmap asset onto the newly created Bitmap's bitmapData property
      6. Add the Bitmap as a child of the sprite
      7. Set a scale9Grid on the sprite
      8. Set the sprite as source of the BitmapImage
      9. Set the width of the BitmapImage to more than 100% of the embedded image (so it scales)

      Actual Results:
      Scale9Grid is applied because of the DisplayObject (Sprite), but smoothing is ignored.

      Expected Results:
      Should scale and remain smooth after

      Workaround (if any):
      Patching this file
      http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as

      using this patch (see updateDisplayList):
      1225c1225
      < g.beginBitmapFill(_bitmapData, matrix);

      > g.beginBitmapFill(_bitmapData, matrix, repeatBitmap, _smooth);

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: