ImageTrim assumes the standard image coordinate system where runs from 0 to image width and runs from 0 to image height. Position corresponds to the bottom-left corner of the image.
If fewer elements exist than are requested, ImageTrim will just return the elements that are present.
By setting a Padding option, pixels outside the original image can also be included.
ImageTrim takes a DataRange option that specifies the range of pixels in the input image. The default setting is DataRange. See the reference page for ImageValue for all possible settings.
ImageTrim specifies different horizontal and vertical margins.