UIImage+AWKit.h
IntroductionUse the links in the table of contents to the left to access the documentation. Methods
AWImageAspectFillSize:constrainedToSize:- (CGSize)AWImageAspectFillSize:(CGSize)imageSize constrainedToSize:(CGSize)constrainSize; ParametersReturn ValueThe size of the image constrined with aspect fill size DiscussionCalculates the aspect fill size of an image given a constraining size AWImageAspectFitSize:constrainedToSize:- (CGSize)AWImageAspectFitSize:(CGSize)imageSize constrainedToSize:(CGSize)constrainingSize; ParametersReturn ValueThe size of the image constrined with aspect fit DiscussionCalculates the aspect fit size of an image given a constraining size imageWithDataScreenScale:+ (UIImage*)imageWithDataScreenScale:(NSData*)data; ParametersReturn ValueThe UIImage or nil if data was nil. DiscussionCreates an image with the scale factor of the main screen. sizeFromHeight:- (CGSize)sizeFromHeight:(CGFloat)height; ParametersReturn ValueThe size of the image given a certain height DiscussionCalculates the image size given just the height with proportional ratio sizeFromWidth:- (CGSize)sizeFromWidth:(CGFloat)width; ParametersReturn ValueThe size of the image given a certain width DiscussionCalculates the image size given just the width with proportional ratio sizeToAspectFitSize:- (CGSize)sizeToAspectFitSize:(CGSize)size; ParametersReturn ValueThe size of the image constrined with aspect fit DiscussionAs AWImageAspectFitSize, but calculated on self (UIImage shorthand) See
|