Support Center

Crop an image.

Rimsy Jun 26, 2014 04:53AM EDT

We want to crop an image but while using CropCommand we are getting error.We want that how to implement cropcommand to crop an image.

1 Data Techniques Response

Up 3 Rated Down
DTI Support  Data Techniques Employee Jun 26, 2014 10:42AM EDT


What error message were you getting ?

You can use the CropCommand like this:

CropCommand cmd = new CropCommand()
cmd.SourceArea = new Rectangle(0,0, 100, 100); // This is the rectangular portion of the image you wish to obtain.
ImImage croppedPortion = cmd.Process(inputImage, null);

Thanks for your interest in our products and please let us know if you have any questions.

Data Techniques Support

This question is closed to new answers.

Contact Us