Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:57:22+00:00 2026-06-15T04:57:22+00:00

I am using Jcrop to try crop and image and save it. http://deepliquid.com/content/Jcrop.html Out

  • 0

I am using Jcrop to try crop and image and save it.

http://deepliquid.com/content/Jcrop.html

Out of the demos this is the one i am implementing:

http://deepliquid.com/projects/Jcrop/demos.php?demo=handler

It gives me several coordinates x1, y1, x2, y2, x, y

once these are submited how do i use them to crop the image?

I have looked at http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing

is this the best way? and it is only using x, y, w and h

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:57:24+00:00Added an answer on June 15, 2026 at 4:57 am

    Using Graphics.DrawImage is a better idea to crop the image in c#

    Rectangle cropRect = new Rectangle(...);
    Bitmap src = Image.FromFile(fileName) as Bitmap;
    Bitmap target = new Bitmap(cropRect.Width, cropRect.Height);
    
     using(Graphics g = Graphics.FromImage(target))
     {
      g.DrawImage(src, new Rectangle(0, 0, target.Width, target.Height), 
                    cropRect,                        
                    GraphicsUnit.Pixel);
     }
    

    From the source Thread

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using jCrop http://deepliquid.com/content/Jcrop.html and there is a weird problem it wont work while
I am following this RyanBates's screencast on cropping User Avatar using jCrop http://railscasts.com/episodes/253-carrierwave-file-uploads .
I am using jcrop to crop the image in my php application.I am using
I want to crop an image at the server side (I am using 'JCrop'
I am using Jcrop jQuery to crop an image in an MVC3 application. The
I am trying to crop the image using JQuery Jcrop plugin with Java Stuff,
I am using Rails 3.0.7 and I am trying to follow this Railscast: http://railscasts.com/episodes/182-cropping-images
I am using Jcrop to allow my users to crop an image before loading
I'm using Jcrop to allow me to crop an uploaded image to be a
I am using JCrop plugin to crop image, things are working good with following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.