UIImage(LimeUtilities) Category Reference
Declared in | UIImage+LimeUtilities.h UIImage+LimeUtilities.m |
Overview
Copyright © 2015, Lime - HighTech Solutions s.r.o. (www.lime-company.eu).
All rights reserved. This source code can be used only for purposes specified by the given license contract signed by the rightful deputy of Lime - HighTech Solutions s.r.o. This source code can be used only by the owner of the license.
Any disputes arising in respect of this agreement (license) shall be brought before the Municipal Court of Prague.
Instance Methods
imageByScalingAndCroppingForSize:
Scale image (while keeping the aspect ratio) to the minimum size required to aspect fill space given by the targetSize parameter.
- (UIImage *)imageByScalingAndCroppingForSize:(CGSize)targetSize
Parameters
- targetSize
Size where the image is supposed to fit using the aspect fill mode.
Return Value
Resized image.
Discussion
Scale image (while keeping the aspect ratio) to the minimum size required to aspect fill space given by the targetSize parameter.
Declared In
UIImage+LimeUtilities.h