Quick dumb image question

I have a datagrid I want to display an image in. I got the
image component created and in there. All works great, except the
image are not scaling to the width and height I want. I am getting
a 300px by (maybe) 10px image. How can I control the width, but let
the height scale with it?
<mx:Image source="/assets/property/{data.imageName}"
verticalAlign="middle" width="300" horizontalAlign="left"
scaleContent="false" maintainAspectRatio="true"/>

"projectproofing" <[email protected]> wrote
in message
news:g8bq1g$pbq$[email protected]..
>I have a datagrid I want to display an image in. I got
the image component
> created and in there. All works great, except the image
are not scaling to
> the
> width and height I want. I am getting a 300px by (maybe)
10px image. How
> can I
> control the width, but let the height scale with it?
>
> <mx:Image source="/assets/property/{data.imageName}"
> verticalAlign="middle"
> width="300" horizontalAlign="left" scaleContent="false"
> maintainAspectRatio="true"/>
have you tried setting variableRowHeight on the dg to true?

Similar Messages

  • Quick background image question

    I think this is a simple question, but maybe it's not.
    Basically I want an image to behave like the background images on
    Prada.com. It scales based upon
    width and crops the height. It seems to be anchored to the
    top-right corner, unless you get fairly narrow then it isn't
    anchored anymore, and it stops scaling the image. I have two large
    displays and no matter how wide I stretch my window it just keeps
    scaling the image. How would I go about doing this?

    "rileyflorence" <[email protected]> wrote in
    message
    news:gf27fd$b22$[email protected]..
    >I think this is a simple question, but maybe it's not.
    Basically I want an
    > image to behave like the background images on
    http://www.prada.com. It
    > scales
    > based upon width and crops the height. It seems to be
    anchored to the
    > top-right
    > corner, unless you get fairly narrow then it isn't
    anchored anymore, and
    > it
    > stops scaling the image. I have two large displays and
    no matter how wide
    > I
    > stretch my window it just keeps scaling the image. How
    would I go about
    > doing
    > this?
    Look for scale9 in the help.
    HTH;
    Amy

  • Dumb newbie question on iphone development

    Hi there, just a quick dumb question: Can i develop Iphone apps in Windows platform? This is b'coz I dun have Mac machine.

    a simple answer is YES in opposite of what you read here.
    +I'm a .NET developer and I started building web apps in .NET (ASP.NET).+
    The iPhone/iPod Touch supports 2 different ways to develop something for it, a Web Application (applications that runs on Safari browser, like Facebook and Wordpress) and a SDK Application (Self contain applications, like games, utilities, etc). *Under Windows, you can do any Web Application*, you will need a Mac to do SDK Applications
    Reading the Wrox book entitled: Professional iPhone Application Development (ISBN 0470251557) in page 5 the writer tells about 4 levels to do Web Apps:
    *Level 1 - Full compatible website/application*
    The ground level approach is to develop a Web site/app that is “ iPhone/iPod touch – friendly ” and is fully compatible with the Apple mobile devices. These sites avoid using technologies that the Apple mobile devices do not support, including Flash, Java, and other plug - ins. The basic structure of the presentation layer also maximizes use of blocks and columns to make it easy for users to navigate and zoom within the site. This basic approach does not do anything specific for iPhone/iPod touch users, but makes sure that there are no barriers to a satisfactory browsing experience.
    (just like http://del.icio.us/
    *Level 2 - Web site/application optimized for Safari*
    The second level of support for iPhone and iPod touch is to not only provide a basic level of experience for the Mobile Safari user, but also to provide an optimized user experience for users who use Safari browsers, such as utilizing some of the enhanced WebKit CSS properties supported by Safari.
    *Level 3 - Dedicated iPhone/iPod Touch web site/application*
    A third level of support is to provide a Web site tailored to the viewport dimensions of the iPhone and iPod touch and provide a strong Web browsing experience for Apple device users. However, while these sites are tailored for iPhone/iPod touch viewing, they do not always seek to emulate Apple UI design. And, in many cases, these are often stripped - down versions of a fuller Web site or
    application.
    (just like Amazon.com and Facebook)
    *Level 4 - Native - looking iPhone/iPod touch application*
    The final approach is to provide a Web application that is designed exclusively for iPhone and iPod touch and closely emulates the UI design of native applications. One of the design goals is to minimize user awareness that they are even inside of a browser environment. Moreover, a full - fledged iPhone application will, as is relevant, integrate with iPhone - specific services, including Phone, Mail, and Google Maps.
    I did 2 web apps using Dreamweaver for Windows, using Level 4, coding plain HTML - there is no visual aid, but you just pick up an iPhone/iPod Touch (or if you don't have this, use Safari browser or any WebKit Browser).
    You can always start here
    Remember, if you really want to build a self contain application in Objective-C/Java, then you need a Mac running Leopard (Mac OS X 10.5), with XCode (the Mac Visual Studio) and the iPhone SDK
    Hope that with this you can see some light under Windows

  • Can I resize a Quick Selected image so it fits when I cut and paste it on a different background.

    Can I resize a Quick Selected image so it fits when I cut and paste it on a new background? I am trying to take a photo of someone and place it on a different background. The Quick Selected image is too big when I paste it on the background. You can only see a small portion of the persons head.

    Open the photo, then go to Image>resize>image size. Read what the resolution is in px/in.
    Get out of this screen. Then use one of the selection tools to select the person, go to Edit>copy to put it on the clipboard
    Now, go to File>new>blank file. Enter width & height, and the same resolution value.
    Go to Edit>paste. The person will be on a separate layer. Use the move tool to position, and, to resize with the corner handles, if necessary
    Note: For printing, it is desirable to have the resolution in the 240-300px/in range. For web work, 72 px/in is ok

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    Hi,
    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    elseif
    /: NEW-PAGE   
    endif
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..
    Regs,
    Lokesh.

  • I have what is hopefully a quick and easy question. I kno...

    I have what is hopefully a quick and easy question. I know almost nothing about this stuff so go easy on me . All I need to do is find out if my DHCP is enabled. I'm having problems with my Xbox 360 and one of the possible problems is this DHCP thing. However I have no idea how to find the settings for my router on my computer. If it helps I have a Wirless model BEFW11S4. Thanks in advance for any help.

    You need to access your router to check if the DHCP is on.  To access the router open your browser and type in http://192.168.1.1 into the address field and hit enter.  That should open the routers log on screen and by default the user is left blank (some routers it is admin) and the password is abmin.  If you changed your routers password as you should for security reasons then use that password.  That will bring you to your routers user interface and on the main set up page should be your DHCP.
    Richard Aichner (Ikester)

  • Dumb newbie question -- shell vrs linux console

    This is probably a dumb newbie question, but what is the difference between the shell screen and the linux console screen? I used another system before Arch and I believe there was only the shell screen! Does it matter which one is used?  Thanks -- Larry

    The console is the 2D text rendering thing. The shell is Bash, just a program that handles your input and has the console as output.
    If on the other hand you mean the console at startup, and you call that the console while you call xterm, etc. shells then the answer is different. It's just a matter of configuration if you automatically start X or not. A lot people use gdm or kdm to get a graphical login screen after bootup, others just type "startx" in the console when they want to start X.
    You can switch to the console with Ctrl+Alt+Fn where n is a number between 1 and 6. You can switch between consoles with Alt+Fn, X is on the last console, so to go back to X do Alt+F7.

  • Two really quick/dumb questions!

    Hi All,
    I have just bought a new Mac Mini and hooked it up to my Samsung 55 inch TV via HDMI and everything seems do be working great.
    My two dumb questions are:
    1: where on the new OS (I had a Mac 5 years ago and things have changed) is the top "Finder" bar and "disc" icon to save files?
    2: In Safari I do not seem to have a tools bar where I can for example open another tab for a new web page.
    Hope you can help a nubby :-)

    You are running a Mini so it might be that the screen resolution is not exact for your display. I have used a Mini with a conventional display but not HDTV. You might need to go into the settings for the TV to set the screen resolution to accommodate the mini's capabilities. Sorry that  I can't offer more on that score; when I use my Sony Bravia HDTV  it is with the iPad2 and HDMI and I have encountered no issues. Perhaps someone else on the forum has better insight into the Menu Bar problem on the Samsung as the principal display. 

  • Quick image question

    Hey i was just wondering if the graphics method drawImage(url, int, int, ImageObserver) is able to display png's. I need it to be able to use a format like png so things can be transparent.
    Could some one just give me a quick list of image types it can handle?
    thanks much!

    drawImage doesn't take a url, it takes an image:
    [http://java.sun.com/javase/6/docs/api/java/awt/Graphics.html#drawImage(java.awt.Image,%20int,%20int,%20java.awt.image.ImageObserver)]
    On the other hand:
    BufferedImage image = ImageIO.read(url);Reads the file formats documented here: [http://java.sun.com/javase/6/docs/api/javax/imageio/package-summary.html]

  • Quick image question - clipping or windowing a section of a larger image

    I've forgotten what it's called, to search the documentation, so maybe someone here can help me to remember...
    I know it's a lot better to use one image, with clipping regions, rather than a lot of little images, so I've created a graphic which contains all of the 32x32 pixel images I want to use in my app. I can easily display the entire image, just fine and it's scaled properly.
    Now, how do I display a specific 32x32 pixel rect at a specified place on the main window, possibly displaying multiple copies of one or more of the smaller images at different places on the main window simultaneously. (like game pieces, or a terrain map).
    Code would be nice, but a pointer to the right documentation will be best. It seems I should be able to do this with one hidden window containing the graphic, and then multiple instances displayed in a separate main window.
    Do I need to use 2 windows, or can the image reside in memory and not be part of a view except when drawn on the main window?
    -Carl

    Found it!
    old
    http://developer.apple.com/documentation/graphicsimaging/conceptual/drawingwithq uartz2d/dqimages/dqimages.html
    simply add "/mac/library/" between developer.apple.com and documentation in the links!
    (someone tell Apple to tell their webservers to do this automagiccally It would save developers a lot of time!
    new
    http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/ drawingwithquartz2d/dqimages/dqimages.html

  • Quick Dumb Question

    I"m assuming when you upgrade from final cut express to final cut pro all your files and everything from express goes into final cut pro?? Correct? Also, what about imovie? Can you still import those files into final cut pro like you can with final cut express?

    http://discussions.apple.com/thread.jspa?messageID=4637952&#4637952

  • NSLog - Quick Dumb Question

    OK, where does the output appear when putting NSLog statements in your code? I can't find it.
    I've put code in like NSLog(@"Got here") and enumeration of dictionaries but nothing ever shows up in the Simulator/Debug Debugger Console. Isn't that where it's supposed to be?

    The Xcode Console window only shows messages from NSLog when running from the device (I never knew that) and is not much help when running the Simulator (and that's what I was using).
    The Console.app does get the output from the Simulator but is congested with all the garbage collection crap from the system.
    I guess I'll learn to debug more from the device. Thanks.

  • One quick dumb question on BM3.9sp1

    I have running on nw65sp7 edir 8.7.9.
    Want to patch all servers, which are all the same as above, with nw65sp8.
    Prior to want to upgrade to edir 8.8 on all boxes including BM.
    I believe BM3.9sp1 is supported on edir 8.8, correct?
    Any other gotcha's with this arrangement?
    Thanks all!

    I should have been more informative, I saw that tid, references 8.8sp3.
    I believe it should be supported under 8.8sp4? right?
    Originally Posted by Mysterious
    shesser wrote:
    > I have running on nw65sp7 edir 8.7.9.
    >
    > Want to patch all servers, which are all the same as above, with
    > nw65sp8.
    > Prior to want to upgrade to edir 8.8 on all boxes including BM.
    >
    > I believe BM3.9sp1 is supported on edir 8.8, correct?
    >
    > Any other gotcha's with this arrangement?
    >
    > Thanks all!
    >
    >
    tid 3171434

  • Quick dumb question - Pre-running CC Particle World?

    In Particular, you can pre-run your simulation so particles are born before time 00:00.   Is there a way to do this in Particle World? I seem to be missing it.

    Pre-Comp the CC Particle World layer, then nudge it in time?
    Of course, you loose the "camera awareness". You could have it by linking a camera inside the Pre-Comp with the main camera outside.
    I am not aware of a built-in method.

  • Quick dumb questions..

    Hi.. i was just wondering about how to output dollar amounts that have thousands serperators. Thanks.

    import java.text.*;
    import java.util.Locale;
    public class PrintNum {
      public static void main(String args[]) {
        // Amount to be formatted
        double amount = 400000.00;
        // Returns an object of type NumberFormat
        NumberFormat nf =
           NumberFormat.getCurrencyInstance(Locale.US);
        // Calls the format method on the NumberFormat object
        // to format the amount as desired and prints the
        // results to the screen
         System.out.println("He paid " +  nf.format(amount)
                               + " for the house.");
    Results in:
    He paid $400,000.00 for the house.

Maybe you are looking for