Crop All Images in A Folder And Save With Different Name

studio

#1

Dear All,

As a part of process I have to crop all the Image file in a given folder into same size and save them with a different name.

Tried few ideas in Forum but could not succeed, Unable to share the actual process but attaching the modified sample found in forum itself.

Request your help.

Crop All Images in Same Size.zip (336.3 KB)


#2

Hi,

In the file you have few errors, you have to use “New Bitmap(item.FullName)” to Assign “LoadedImage”.
And in the next assign the variable no where initialized “SelectedRegion.ClippingRegion.Rectangle.Value” to CropRectangle. Please check on those.