Autosize Image Control

Discussion in 'ASP .Net Web Controls' started by Wayne Wengert, Mar 8, 2005.

  1. I need to be able to display jpg images in an image control but I want to
    resize the display to match the dimensions of the jpg. Does anyone have a
    pointer to some information on how to accomplish this?

    Wayne
     
    Wayne Wengert, Mar 8, 2005
    #1
    1. Advertising

  2. If you don't set the height or width properties of the Image control, it
    should automatically adjust to the size of the jpg.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net



    "Wayne Wengert" <> wrote in message
    news:u6JCqZ%...
    >I need to be able to display jpg images in an image control but I want to
    > resize the display to match the dimensions of the jpg. Does anyone have a
    > pointer to some information on how to accomplish this?
    >
    > Wayne
    >
    >
     
    Steve C. Orr [MVP, MCSD], Mar 9, 2005
    #2
    1. Advertising

  3. Thanks Steve;

    As usual, I was trying the hard way. Appreciate the education.

    Wayne

    "Steve C. Orr [MVP, MCSD]" <> wrote in message
    news:...
    > If you don't set the height or width properties of the Image control, it
    > should automatically adjust to the size of the jpg.
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > http://SteveOrr.net
    >
    >
    >
    > "Wayne Wengert" <> wrote in message
    > news:u6JCqZ%...
    > >I need to be able to display jpg images in an image control but I want to
    > > resize the display to match the dimensions of the jpg. Does anyone have

    a
    > > pointer to some information on how to accomplish this?
    > >
    > > Wayne
    > >
    > >

    >
    >
     
    Wayne Wengert, Mar 9, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dennis Strickland via .NET 247

    How to autosize the row heigth in a Datagrid

    Dennis Strickland via .NET 247, Jun 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,363
    Uri Dor
    Jun 15, 2004
  2. raymond chiu

    set autosize of datagrid to no

    raymond chiu, Dec 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,720
    Christopher Reed
    Dec 29, 2005
  3. Jeff

    newbie: autosize

    Jeff, Jul 14, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    1,863
  4. =?Utf-8?B?U0FM?=

    How do you autosize a Table Cell?

    =?Utf-8?B?U0FM?=, Aug 10, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    14,440
    John Timney \(MVP\)
    Aug 10, 2006
  5. Jake

    Popup - detect and autosize to image

    Jake, May 25, 2005, in forum: ASP General
    Replies:
    2
    Views:
    114
    Mark Schupp
    May 26, 2005
Loading...

Share This Page