TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
cropping image in c#
Hiren Soni
May 24, 2012
37.9
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
How to crop an image using c#
code snippet :
Image img = Image.FromFile("c:\\hello.jpg");
Bitmap bmpImage = new Bitmap(img);
Bitmap bmpCrop = bmpImage.Clone(new Rectangle(100, 100, 300, 300), bmpImage.
PixelFormat);
bmpCrop.Save("c:\\hellocrop.jpg");
Next Recommended Reading
How to add an Image Source as a Resource in WPF