Skip to content

Commit

Permalink
Update GPUImageFillModeType enum to use NS_ENUM
Browse files Browse the repository at this point in the history
  • Loading branch information
msfeldstein committed Oct 6, 2015
1 parent 72750f0 commit ffbc0b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/Source/iOS/GPUImageView.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#import <UIKit/UIKit.h>
#import "GPUImageContext.h"

typedef enum {
typedef NS_ENUM(NSUInteger, GPUImageFillModeType) {
kGPUImageFillModeStretch, // Stretch to fill the full view, which may distort the image outside of its normal aspect ratio
kGPUImageFillModePreserveAspectRatio, // Maintains the aspect ratio of the source image, adding bars of the specified background color
kGPUImageFillModePreserveAspectRatioAndFill // Maintains the aspect ratio of the source image, zooming in on its center to fill the view
} GPUImageFillModeType;
};



/**
UIView subclass to use as an endpoint for displaying GPUImage outputs
Expand Down

0 comments on commit ffbc0b4

Please sign in to comment.