C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Visual Studio »

Crop and resizing (urgent)


Posted Date: 21 Oct 2009      Posted By: rooney      Member Level: Bronze     Points: 1   Responses: 1



hi i want code for cropping,resizing and inverting multiple images in c#.net.
thnks





Responses

Author: Dinesh Kumar Gaur    21 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

use this code to resize the image


using System.Collections;
using System.IO;
using System.Web;

public class ListFiles
{
public static ICollection ListUploadDirectory()
{
DirectoryInfo d = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Upload"));//Folder from where you want to retrieve files
return d.GetFileSystemInfos("*.jpg");//type of files which you want to retrieve
}

}


Don't forget to rate the response

join this campus group
http://www.dotnetspider.com/sites/637/-ecb-aspdotnet.aspx
lovely pics...



Post Reply
You must Sign In to post a response.
Next : Picture box
Previous : How to disable button in a datagridview
Return to Discussion Forum
Post New Message
Category: Visual Studio

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use