YH_ImageSliceService.h 1.19 KB
//
//  YH_ImageSliceService.h
//  Yohoboys
//
//  Created by redding on 14-10-9.
//  Copyright (c) 2014年 YOHO. All rights reserved.
//

#import "M16Service.h"
#import "Macros.h"

@interface YH_ImageSliceService : M16Service



+ (NSURL *)sliceImageURL:(NSURL *)originURL sliceType:(YH_ImageURLSliceType)sliceType originSize:(CGSize)originSize toSize:(CGSize)toSize;




//+ (NSURL *)listImageSliceSize:(CGSize)size originURL:(NSURL *)originURL;
//+ (NSURL *)detailTopImageSlice:(NSURL *)originURL;
//+ (NSURL *)relatedPostImageSliceSize:(CGSize)size originURL:(NSURL *)originURL;

+ (NSURL *)imageSliceSize:(CGSize)size originURL:(NSURL *)originURL;

//+ (NSURL *)calendarImageSliceToSize:(CGSize)toSize originImageSize:(CGSize)originImageSize originURL:(NSURL *)originURL;

+ (CGSize)calculateImageSizeWithImageWidth:(NSInteger)imageWidth imageHeight:(NSInteger)imageHeight;

+ (NSURL *)rulesImageSliceSize:(CGSize)size originURL:(NSURL *)originURL;

+ (NSURL *)imageURL:(NSURL *)imageURL sliceToMaxWidth:(NSInteger)maxWidth;

+ (NSURL *)sliceToFitWidh:(CGSize)size originURL:(NSURL *)originURL;

+ (NSURL *)photoKindSliceURL:(NSURL *)originURL;

//+ (NSURL *)sliceContentDetailImageURL:(NSURL *)originURL;

@end