//
//  UIImageView+Utility.m
//  Minfo
//
//  Created by Nguyen Hieu on 1/9/13.
//  Copyright (c) 2013 Nguyen Hieu. All rights reserved.
//

#import "UIImageView+Utility.h"

@implementation UIImageView (Utility)
-(void )ScareImageWithSize:(CGSize )size
{
    float x = self.image.size.width;
    float y = self.image.size.height;
    
    float scare_x = size.width/x;
    float scare_y = size.width/y;
    float w = 0;
    float h = 0;
    if(scare_x<scare_y)
    {
        w = x*scare_x;
        h = y*scare_x;
    }
    else{
        w = x*scare_y;
        h = y*scare_y;
    }
    //CGSize sz = CGSizeMake(w, h);
    
    
    
    
}
@end
