Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webcontrols
Image display must be the same resize...
Trint Smith
2/17/2004 2:01:00 AM
I need to display an images from a database on my page that should
always be displayed as 200 pixels wide eventhough the actual images vary
in size...Can you help me?
Thanks,
Trint
.Net programmer
trintsmith@hotmail.com
*** Sent via Developersdex
http://www.develop...
***
Don't just participate in USENET...get rewarded for it!
2 Answers
Ken Cox [MS MVP]
2/17/2004 3:44:00 AM
0
Hi Trint,
I must be missing something, because it seems you could just hardcode the
size for the image control to be 200 pixels wide. That would force the size,
but it may distort:
<asp:Image id="Image1" runat="server"
ImageUrl="
http://www.gc.ca/images/flag...
Width="200px"></asp:Image></P>
Could you explain further what you need?
Ken
MVP [ASP.NET]
"Trint Smith" <trintsmith@hotmail.com> wrote in message
news:%23mEtenP9DHA.2416@TK2MSFTNGP10.phx.gbl...
>I need to display an images from a database on my page that should
> always be displayed as 200 pixels wide eventhough the actual images vary
> in size...Can you help me?
> Thanks,
> Trint
>
> Net programmer
> trintsmith@hotmail.com
>
> *** Sent via Developersdex
http://www.develop...
***
> Don't just participate in USENET...get rewarded for it!
Aaron Boodman
2/17/2004 8:25:00 AM
0
You can resample the images on the fly using stuff in System.Drawing. There
are tons of examples of this on the web.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=resize+image&meta=group%3Dmicrosoft.pub...
.*
--
Aaron
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:e$8N9gQ9DHA.2472@TK2MSFTNGP10.phx.gbl...
> Hi Trint,
>
> I must be missing something, because it seems you could just hardcode the
> size for the image control to be 200 pixels wide. That would force the
size,
> but it may distort:
>
> <asp:Image id="Image1" runat="server"
> ImageUrl="
http://www.gc.ca/images/flag...
Width="200px"></asp:Image></P>
>
> Could you explain further what you need?
>
> Ken
> MVP [ASP.NET]
>
>
> "Trint Smith" <trintsmith@hotmail.com> wrote in message
> news:%23mEtenP9DHA.2416@TK2MSFTNGP10.phx.gbl...
> >I need to display an images from a database on my page that should
> > always be displayed as 200 pixels wide eventhough the actual images vary
> > in size...Can you help me?
> > Thanks,
> > Trint
> >
> > Net programmer
> > trintsmith@hotmail.com
> >
> > *** Sent via Developersdex
http://www.develop...
***
> > Don't just participate in USENET...get rewarded for it!
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Image display must be the same resize...
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password