Enumeration GrayscaleTransformationMode
GrayscaleTransformationMode specifies the method employed to transform images in grayscale.
- Objective-C
- Swift
typedef NS_ENUM(NSInteger, DSGrayscaleTransformationMode) { /** Skips grayscale transformation. */ DSGrayscaleTransformationModeSkip = 0, /** Transforms to the inverted grayscale for further reference. This value is recommended for light on dark images. */ DSGrayscaleTransformationModeInverted = 1 << 0, /** Keeps the original grayscale for further reference. This value is recommended for dark on light images. */ DSGrayscaleTransformationModeOriginal = 1 << 1, /**Lets the library choose an algorithm automatically for grayscale transformation.*/ DSGrayscaleTransformationModeAuto = 1 << 2, /** Placeholder value with no functional meaning. */ DSGrayscaleTransformationModeEnd = -1, /** Reserved setting for grayscale transformation mode. */ DSGrayscaleTransformationModeRev = NSIntegerMin };public enum GrayscaleTransformationMode : Int { /** Skips grayscale transformation. */ case skip = 0 /** Transforms to the inverted grayscale for further reference. This value is recommended for light on dark images. */ case inverted = 1 << 0 /** Keeps the original grayscale for further reference. This value is recommended for dark on light images. */ case original = 1 << 1 /**Lets the library choose an algorithm automatically for grayscale transformation.*/ case auto = 1 << 2 /** Placeholder value with no functional meaning. */ case end = -1 /** Reserved setting for grayscale transformation mode. */ case rev = Int.min }