YH_ImageSliceService.h
1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// 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