473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Image size

Dan
I have a folder with various images which are updated (externally)
periodically and a web page with an image control, text and user control
buttons. Depending on the users actions, I want to display a picture and
associated text. It all works fine except that the pictures are distorted to
fill the image control.

Is there any way I can display the picture in its original proportions
without externally resixing each picture to the dimensions of the image
control?

Thanks for your help.

Dan
Nov 21 '05 #1
4 1560
"Dan" <da*@dsully.com> schrieb:
I have a folder with various images which are updated (externally)
periodically and a web page with an image control, text and user control
buttons. Depending on the users actions, I want to display a picture and
associated text. It all works fine except that the pictures are distorted
to fill the image control.

Is there any way I can display the picture in its original proportions
without externally resixing each picture to the dimensions of the image
control?


Set the image control's 'SizeMode' property to 'AutoSize'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Dan
Should have said that this is in Web Forms.....no picturebox control and no
SizeMode property that I can see.

Dan
--------------------------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
"Dan" <da*@dsully.com> schrieb:
I have a folder with various images which are updated (externally)
periodically and a web page with an image control, text and user control
buttons. Depending on the users actions, I want to display a picture and
associated text. It all works fine except that the pictures are distorted
to fill the image control.

Is there any way I can display the picture in its original proportions
without externally resixing each picture to the dimensions of the image
control?


Set the image control's 'SizeMode' property to 'AutoSize'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Hi,

If you leave the image's height and width properties blank the
picture will auto size. You might have to look in the html portion of the
form and delete the height and width of the asp:image manually. Hope this
helps.
Ken
-------------------
"Dan" <da*@dsully.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Should have said that this is in Web Forms.....no picturebox control and no
SizeMode property that I can see.

Dan
--------------------------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
"Dan" <da*@dsully.com> schrieb:
I have a folder with various images which are updated (externally)
periodically and a web page with an image control, text and user control
buttons. Depending on the users actions, I want to display a picture and
associated text. It all works fine except that the pictures are distorted
to fill the image control.

Is there any way I can display the picture in its original proportions
without externally resixing each picture to the dimensions of the image
control?


Set the image control's 'SizeMode' property to 'AutoSize'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #4
Dan
That worked. Thanks.

dan
------------------------------------
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:u1**************@TK2MSFTNGP09.phx.gbl...
Hi,

If you leave the image's height and width properties blank the
picture will auto size. You might have to look in the html portion of the
form and delete the height and width of the asp:image manually. Hope this
helps.
Ken
-------------------
"Dan" <da*@dsully.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Should have said that this is in Web Forms.....no picturebox control and
no
SizeMode property that I can see.

Dan
--------------------------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
"Dan" <da*@dsully.com> schrieb:
I have a folder with various images which are updated (externally)
periodically and a web page with an image control, text and user control
buttons. Depending on the users actions, I want to display a picture and
associated text. It all works fine except that the pictures are distorted
to fill the image control.

Is there any way I can display the picture in its original proportions
without externally resixing each picture to the dimensions of the image
control?


Set the image control's 'SizeMode' property to 'AutoSize'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ruby Tuesday | last post by:
I have a section(185pixelsx 185pixels) in my web page to display an image that is stored in a directory. Using php, how do you resize so if: the image dimension is smaller(width and height is...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
4
by: no-spam | last post by:
Hello, I have an HTML question that I'm not sure can be solved. I want to restrict the maximum size of an inline image. For example, I can force the image to be 200x200 if I do this: <img...
8
by: Chris Dewin | last post by:
Hi. I run a website for my band, and the other guys want an image gallery. I'm thinking it would be nice and easy, if we could just upload a jpg into a dir called "gallery/". When the client...
1
by: John Thompson | last post by:
We're sooo close. When we load the page to upload the image, all of the prms go through except the binary image data. Using SQL server with the data type set to "image". Please help! Thanks-...
6
by: nichughes | last post by:
Hello all, A question relating to http://www.entrust-systems.net/ Just for a change I have run into a problem that seems to be OS specific rather than browser specific - the box image that is...
3
by: =?Utf-8?B?SlIx?= | last post by:
I would like to add text to an image. I have tried to use DrawString and it works on some images but on others it is very very small. I am pretty sure it has something to do with the size of the...
2
by: Adam Teale | last post by:
hey guys Is there a builtin/standard install method in python for retrieving or finding out an image's dimensions? A quick google found me this:...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
2
by: studentofknowledge | last post by:
For some unknown reason ie is placing images I have in a div in a weird way. One image is overlapping another but this problem is not occuring in mozilla. I have looked at my code over and over again...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.