Skip to content

Commit

Permalink
clean rubbish framework and files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragan123 committed Jul 31, 2013
1 parent 13d1317 commit cca94fa
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 13,658 deletions.
2 changes: 1 addition & 1 deletion Library/Categories/UIImage+BGAdditional.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
- (UIImage *)resizeImageToSize: (CGSize)targetSize;
- (UIImage*) imageScaledToSize: (CGSize) newSize;
- (UIImage*) resizeImageFromSize: (CGSize)fromSize toSize:(CGSize)toSize orientation:(BOOL)isPortrait;
- (UIImage*) imageWithBrightness:(float)b andContrast:(float)c;
//- (UIImage*) imageWithBrightness:(float)b andContrast:(float)c;
@end
36 changes: 18 additions & 18 deletions Library/Categories/UIImage+BGAdditional.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "UIImage+BGAdditional.h"
#import <CoreImage/CoreImage.h>
//#import <CoreImage/CoreImage.h>

@implementation UIImage (BGAdditional)

Expand Down Expand Up @@ -161,22 +161,22 @@ - (UIImage*) resizeImageFromSize: (CGSize)fromSize toSize:(CGSize)toSize orienta
return self;
}

- (UIImage*) imageWithBrightness:(float)b andContrast:(float)c{
CIContext *ctx = [CIContext contextWithOptions:nil];
CIImage *image = [CIImage imageWithCGImage:self.CGImage];

CIFilter *cif = [CIFilter filterWithName:@"CIColorControls"];
[cif setValue:image forKey:kCIInputImageKey];
[cif setValue:[NSNumber numberWithFloat:b] forKey:@"inputBrightness"];
[cif setValue:[NSNumber numberWithFloat:c] forKey:@"inputContrast"];
image = cif.outputImage;
CGImageRef cgImage = [ctx createCGImage:image fromRect:[image extent]];

UIImage *newImage = [UIImage imageWithCGImage:cgImage];
CGImageRelease(cgImage);
ctx = nil;

return newImage;
}
//- (UIImage*) imageWithBrightness:(float)b andContrast:(float)c{
// CIContext *ctx = [CIContext contextWithOptions:nil];
// CIImage *image = [CIImage imageWithCGImage:self.CGImage];
//
// CIFilter *cif = [CIFilter filterWithName:@"CIColorControls"];
// [cif setValue:image forKey:kCIInputImageKey];
// [cif setValue:[NSNumber numberWithFloat:b] forKey:@"inputBrightness"];
// [cif setValue:[NSNumber numberWithFloat:c] forKey:@"inputContrast"];
// image = cif.outputImage;
// CGImageRef cgImage = [ctx createCGImage:image fromRect:[image extent]];
//
// UIImage *newImage = [UIImage imageWithCGImage:cgImage];
// CGImageRelease(cgImage);
// ctx = nil;
//
// return newImage;
//}

@end
41 changes: 0 additions & 41 deletions Library/DSReflection/DSReflectionLayer.h

This file was deleted.

108 changes: 0 additions & 108 deletions Library/DSReflection/DSReflectionLayer.m

This file was deleted.

Loading

0 comments on commit cca94fa

Please sign in to comment.