Cropping PSD file while converting to PNG

Cropping PSD file while converting to PNG

Below provided sample code demonstrates how to crop the PSD image while converting it to PNG.