Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Instead of setting the scale, try this:</p> <pre><code>&lt;mx:Image id="img" height="{this.height-38}" maintainAspectRatio="true" /&gt; </code></pre> <p>I attempted to recreate your issue, and even with the scale I did not see the white borders. <img src="https://i.stack.imgur.com/kgEpE.png" alt="enter image description here"></p> <p>I have a black border because that is the background of the panel...</p> <pre><code>&lt;mx:Panel id="thePanel" headerHeight="20" horizontalAlign="center" verticalAlign="middle" height="200" width="150" backgroundColor="#000000"&gt; &lt;!-- how do I make this image object have a transparent background --&gt; &lt;mx:Image id="img" height="{thePanel.height-38}" maintainAspectRatio="true" /&gt; &lt;/mx:Panel&gt; </code></pre> <p>Edit: So the background you're seeing is the background of the box behind the panel, not the image (see opaqueBackground prop on panel). What you want then is to set the background of the panel to be the same color as the borders of the panel. Is panel the right container to use? How about a HBox with roudned corners?</p> <pre><code>&lt;mx:VBox id="thePanel" cornerRadius="4" backgroundColor="0xd1dbe9" horizontalAlign="center" verticalAlign="middle" height="200" width="150" paddingBottom="5" paddingLeft="5" paddingTop="5"&gt; &lt;mx:Label text="Bind to title String" /&gt; &lt;mx:Image id="img" width="100%" height="100%"/&gt; &lt;/mx:VBox&gt; </code></pre> <p><img src="https://i.stack.imgur.com/ygyHk.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload