updated scaleSize:toSize to adjust scaling priorities depending what destination dimension is narrower.  Updated scaleBitmapToSize to pass zero for bytesPerRow so that the method calculates it automatically.  In addition, it handles the case when the context returns null.  Added new method transposeCropRect:fromBound:toBound to return the crop rect positioned within the destination rectangle. It also takes the orientation rather than using the member property value.
updated scaleSize:toSize to adjust scaling priorities depending what destination dimension is narrower.  Updated scaleBitmapToSize to pass zero for bytesPerRow so that the method calculates it automatically.  In addition, it handles the case when the context returns null.  Added new method transposeCropRect:fromBound:toBound to return the crop rect positioned within the destination rectangle. It also takes the orientation rather than using the member property value.

miller-ms/MMSCropImageView