Hi Santhosh,

For using Grid9 scaling we need to mark one rectangle area inside image for scaling (when component re-size) , where scaleGridLeft, scaleGridRight, scaleGridTop, scaleGridBottom values completely depends rectangle area (inside image you want to mark for scaling ).

below are the details for calculating your own values for selecting/marking rectangle area inside image:
      scaleGridLeft -> x value of rectangle area inside Image
      scaleGridRight -> rectangle x + width of Rectangle area inside Image
      scaleGridTop -> y  value of Rectangle area inside Image
      scaleGridBottom ->Rectangle y + height of Rectangle area inside Image

or send your Image (Top_Bottom_Bar.png) as attachment ........ will try to send values for scaleGridLeft, scaleGridRight, scaleGridTop, scaleGridBottom depending upon your image.

Thanks,
Natwar G

On 08-06-2011 08:43, kiran reddy wrote:
Hi Santhosh,
I think the below code will work.Try the below code:
<s:BorderContainer width="100%" height="100%"
backgroundImage="@Embed('/Styles/Images/toolIcons/Top_Bottom_Bar.png',
                                 scaleGridLeft='50', scaleGridRight='650',
scaleGridTop='52', scaleGridBottom='53')">
</s:BorderContainer>

Kiran.
On Mon, Jun 6, 2011 at 8:45 PM, Santhosh L <[email protected] <mailto:[email protected]>> wrote:

    Hello All,
        I am facing one issue in adding background image. I have added
    the BorderContainer and embedded the image in it. But the scaling
    is not working. Please can anybody give me the solution for this.


    Code is here...

    <s:BorderContainer width="100%" height="100%"
backgroundImage="@Embed('/Styles/Images/toolIcons/Top_Bottom_Bar.png',
                           scaleGridTop=52, scaleGridBottom=53,
                           scaleGridLeft=150, scaleGridRight=650)">

    </s:BorderContainer>

-- Thanks and Regards,
    Santhosh L
-- You received this message because you are subscribed to the Google
    Groups "Flex India Community" group.
    To post to this group, send email to [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:flex_india%[email protected]>.
    For more options, visit this group at
    http://groups.google.com/group/flex_india?hl=en.


--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



===========================================================
***Disclaimer***


This email, and any attachments ("this email"), is confidential. If you are not 
the addressee please tell the sender immediately, and destroy this email without using, 
sending or storing it. Any opinions, express or implied, in this email, are those of the 
sender, and are not necessarily approved by the company.  Except as expressly stated, 
this e-mail should not be regarded as an offer, solicitation, recommendation or agreement 
to buy or sell products or services, or to enter into any contract. E-mail transmissions 
are not secure and may suffer errors, viruses, delay, interception and amendment. The 
company does not accept liability for damage caused by any of the foregoing.

ALL INCOMING AND OUTGOING MAILS MAY BE MONITORED BY THE COMPANY.
============================================================

--
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to