Re: Custom ImagePlaceholder...Want to maintain aspect ratio of image, and make image c
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: Custom ImagePlaceholder...Want to maintain aspect ratio of image, and make image c




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Custom ImagePlaceholder...Want to maintain aspect ratio of image, and make image c  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-04 11:10 PM

Hi Alan,

MCMS does not expose the properties out of the box.

If it is a resource gallery item you could access the resource using the
OpenReadStream property and read it into an Image object.
Then you can read the width and height.

If it is a local image you would have to do an HttpRequest to request the
file, store the item in a memory file Stream and then read it into a Image
object and read the height and width value.


Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Alan Taylor" <alan_taylor@nospam.uk.ibm.com> wrote in message
 news:cidfg0p18gl1nlmo8s8ge77nmmtvhc01nk@
4ax.com...
> Thanks for the response.
>
> I guess what I'm trying to achive is a customer image placeholder that
> allows the user to select an image during authoring, and when
> published shows a thumbnail for the image (whose max height/width I
> chose) maintaining the aspect ratio, and allows the image to be
> clicked showing the full image in a new window.
>
> How am I able to get the height and width of the image?
>
> alan







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register