Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  How to display an image in small size but the rate between width and heght is same?
Previous Previous
 
Next Next
New Post 6/26/2008 10:01 AM
User is offline Nguyen Minh Duc
90 posts
10th Ranked


How to display an image in small size but the rate between width and heght is same? 

When the module displays images in a small size, please tell me how to keep the rate between width and heght same. I know that we can use tool such as Paint to stretch or skew it. But I also see that we can do it by code. Please tell me how to do it.

Thank in advance.

 
New Post 6/30/2008 2:09 PM
User is offline Mitch Sellers
5566 posts
www.mitchelsellers.com
3rd Ranked




Re: How to display an image in small size but the rate between width and heght is same? 

You will need to use a thumbnail method that will keep the proper aspect ratio when resizing.

Many code samples can be found for how to do this.

Simply search for "Image resizing".  The Coding4Fun section of MSDN has a great example that I like.


-Mitchel Sellers
MCITP, MCPD, MCTS
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
New Post 6/30/2008 4:50 PM
User is offline William Severance
787 posts
www.wesnetdesigns.com
7th Ranked






Re: How to display an image in small size but the rate between width and heght is same? 

Take a look at my open source DNN Forge project "Image Editor Control" which is available at www.codeplex.com/imageeditor. In particular, study the source code in the file ImageUtilities.vb. There you will find a wealth of methods for loading, saving, resizing, cropping, rotating, and otherwise enhancing bitmapped images. If you are looking to dynamically resize images and output them to the response stream, you will find many (similar) methods in the code for the DynamicImage.ashx HttpHandler.


Bill, WESNet Designs
 
New Post 7/1/2008 6:45 PM
User is offline Nguyen Minh Duc
90 posts
10th Ranked


Re: How to display an image in small size but the rate between width and heght is same? 

Thank you for your helps. I can use makethumbnail.aspx in DNN module to resize image.

I also download imageeditor. However, it seem that I have to upgrade DNN to 4.8.4 while I am using version 4.7.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  How to display an image in small size but the rate between width and heght is same?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP